aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Common/Configuration/Options.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/slskd/Common/Configuration/Options.cs b/src/slskd/Common/Configuration/Options.cs
index 19300f1f..2ba749f6 100644
--- a/src/slskd/Common/Configuration/Options.cs
+++ b/src/slskd/Common/Configuration/Options.cs
@@ -128,6 +128,13 @@
[Range(1, 65535)]
public int Port { get; private set; } = 5001;
public bool Force { get; private set; } = false;
+ public CertificateOptions Certificate { get; private set; } = new CertificateOptions();
+
+ public class CertificateOptions
+ {
+ public string Pfx { get; private set; }
+ public string Password { get; private set; }
+ }
}
}
@@ -231,6 +238,22 @@
Description: "redirect HTTP to HTTPS"),
new(
ShortName: default,
+ LongName: "https-cert-pfx",
+ EnvironmentVariable: "HTTPS_CERT_PFX",
+ Key: "slskd:web:https:certificate:pfx",
+ Type: typeof(string),
+ Default: null,
+ Description: "path to certificate .pfx"),
+ new(
+ ShortName: default,
+ LongName: "https-cert-password",
+ EnvironmentVariable: "HTTPS_CERT_PASSWORD",
+ Key: "slskd:web:https:certificate:password",
+ Type: typeof(string),
+ Default: null,
+ Description: "certificate password"),
+ new(
+ ShortName: default,
LongName: "url-base",
EnvironmentVariable: "URL_BASE",
Key: "slskd:web:urlbase",