diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-11-20 13:46:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-20 13:46:27 -0600 |
| commit | 716b607bf7079878b2237060ad7643a1b5ad311a (patch) | |
| tree | 56d0b8b087dd00c7b3bdb3d110a1a6a9f000d347 /src/slskd/Program.cs | |
| parent | 6b83eb2d94d91b36cd6f674bd3d12e2250e694b3 (diff) | |
| parent | 6bcda33725a092a5416c7d4538c26fac1eb69c45 (diff) | |
| download | slskd-716b607bf7079878b2237060ad7643a1b5ad311a.tar.gz | |
Merge pull request #271 from slskd/remote-config
Add the ability to update the configuration file via the UI
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 4c772772..c70db953 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -122,6 +122,11 @@ namespace slskd public static string AppDirectory { get; private set; } = DefaultAppDirectory; /// <summary> + /// Gets the fully qualified path to the application configuration file. + /// </summary> + public static string ConfigurationFile => Path.Combine(AppDirectory, $"{AppName}.yml"); + + /// <summary> /// Gets the default downloads directory. /// </summary> public static string DefaultDownloadsDirectory => Path.Combine(AppDirectory, "downloads"); @@ -137,7 +142,6 @@ namespace slskd public static ConcurrentFixedSizeQueue<LogRecord> LogBuffer { get; } = new ConcurrentFixedSizeQueue<LogRecord>(size: 100); private static IConfigurationRoot Configuration { get; set; } - private static string ConfigurationFile => Path.Combine(AppDirectory, $"{AppName}.yml"); private static OptionsAtStartup OptionsAtStartup { get; } = new OptionsAtStartup(); [Argument('g', "generate-cert", "generate X509 certificate and password for HTTPs")] |
