diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-02-05 07:55:01 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-02-05 07:55:01 -0600 |
| commit | c443846a08b82a08e5cce429007804b20d87a40a (patch) | |
| tree | 89210aeebdd0df3655752a525a5c97b90d473ac2 /src | |
| parent | c251608c61796c5c829c5e6a94948a62a1de427d (diff) | |
| download | slskd-c443846a08b82a08e5cce429007804b20d87a40a.tar.gz | |
add https cert pfx/password
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Common/Configuration/Options.cs | 23 |
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", |
