aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-04-23 14:04:27 -0500
committerGitHub <noreply@github.com>2022-04-23 14:04:27 -0500
commit4b8db3f42698c05b592cc0688ad7244746af1aec (patch)
tree4ec3394493bfde5fc97f4424dcf82166150d4cb0 /src/slskd/Options.cs
parent480e9a17919b98a7a4f35d2b09c1232d30ffc679 (diff)
parent612a1574b040f5c2fc577ffbe4e37f11bedbe4b4 (diff)
downloadslskd-4b8db3f42698c05b592cc0688ad7244746af1aec.tar.gz
Merge pull request #445 from slskd/no-ssl
Add an option to disable HTTPS
Diffstat (limited to 'src/slskd/Options.cs')
-rw-r--r--src/slskd/Options.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index 507006a4..00ae670e 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -1057,6 +1057,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")]