diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-04-23 14:04:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-23 14:04:27 -0500 |
| commit | 4b8db3f42698c05b592cc0688ad7244746af1aec (patch) | |
| tree | 4ec3394493bfde5fc97f4424dcf82166150d4cb0 /src/slskd/Options.cs | |
| parent | 480e9a17919b98a7a4f35d2b09c1232d30ffc679 (diff) | |
| parent | 612a1574b040f5c2fc577ffbe4e37f11bedbe4b4 (diff) | |
| download | slskd-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.cs | 9 |
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")] |
