feat: add lifecycle options (lame duck, PID file, ports file, config stub)
This commit is contained in:
@@ -36,6 +36,18 @@ public sealed class NatsOptions
|
||||
// 0 = disabled
|
||||
public int MonitorHttpsPort { get; set; }
|
||||
|
||||
// Lifecycle / lame-duck mode
|
||||
public TimeSpan LameDuckDuration { get; set; } = TimeSpan.FromMinutes(2);
|
||||
public TimeSpan LameDuckGracePeriod { get; set; } = TimeSpan.FromSeconds(10);
|
||||
|
||||
// File paths
|
||||
public string? PidFile { get; set; }
|
||||
public string? PortsFileDir { get; set; }
|
||||
public string? ConfigFile { get; set; }
|
||||
|
||||
// Profiling (0 = disabled)
|
||||
public int ProfPort { get; set; }
|
||||
|
||||
// TLS
|
||||
public string? TlsCert { get; set; }
|
||||
public string? TlsKey { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user