diff options
Diffstat (limited to 'src/slskd/Options.cs')
| -rw-r--r-- | src/slskd/Options.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 507006a4..a1493ca4 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -965,6 +965,7 @@ namespace slskd [EnvironmentVariable("CONTENT_PATH")] [Description("path to static web content")] [StringLength(255, MinimumLength = 1)] + [DirectoryExists] [RequiresRestart] public string ContentPath { get; init; } = "wwwroot"; @@ -1057,6 +1058,15 @@ namespace slskd public class HttpsOptions { /// <summary> + /// Gets a value indicating whether HTTPS should be disabled. + /// </summary> + [Argument(default, "no-https")] + [EnvironmentVariable("NO_HTTPS")] + [Description("disable HTTPS")] + [RequiresRestart] + public bool Disabled { get; init; } = false; + + /// <summary> /// Gets the HTTPS listen port. /// </summary> [Argument('L', "https-port")] |
