aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-05-07 15:07:39 -0500
committerGitHub <noreply@github.com>2022-05-07 15:07:39 -0500
commit06fffb8b217bc11beadc49e665f38313447c49ec (patch)
tree67a764cc9b412ba8e251f0added063039a97f7a2 /src/slskd/Options.cs
parent1f560268681b7eac9b21b7d63a6e6f9dfae0a52c (diff)
parent6ac44e4540e5b0bf42f99563b47317add8d22aff (diff)
downloadslskd-06fffb8b217bc11beadc49e665f38313447c49ec.tar.gz
Merge branch 'master' into feat/fold-user-transfers
Diffstat (limited to 'src/slskd/Options.cs')
-rw-r--r--src/slskd/Options.cs10
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")]