diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-11-23 18:38:02 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-11-23 18:38:02 -0600 |
| commit | 3e69af61e6ab42d79b9ff86adf7729e8abc70eed (patch) | |
| tree | 41c799babd5509638bee59afe9bd995fc6e8c6c5 /src/slskd/Core/Options.cs | |
| parent | 119a3925da7fdf5f659bfa4c8e61e39a7148ba3e (diff) | |
| parent | 318d1c16f80f6d48a408fb95b77c5a42402bf7df (diff) | |
| download | slskd-3e69af61e6ab42d79b9ff86adf7729e8abc70eed.tar.gz | |
Merge remote-tracking branch 'origin/master' into statistics
Diffstat (limited to 'src/slskd/Core/Options.cs')
| -rw-r--r-- | src/slskd/Core/Options.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 4d4c1e68..ec94afcb 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -418,6 +418,15 @@ namespace slskd public bool LogSQL { get; init; } = false; /// <summary> + /// Gets a value indicating whether to log unobserved Exceptions. + /// </summary> + [Argument(default, "log-unobserved-exceptions")] + [EnvironmentVariable("LOG_UNOBSERVED_EXCEPTIONS")] + [Description("log unobserved exceptions (caution: verbose)")] + [RequiresRestart] + public bool LogUnobservedExceptions { get; init; } = false; + + /// <summary> /// Gets a value indicating whether the application should run in experimental mode. /// </summary> [Argument(default, "experimental")] @@ -461,6 +470,22 @@ namespace slskd [EnvironmentVariable("OPTIMISTIC_RELAY_FILE_INFO")] [Description("use uploaded relay shares as source of truth for file existence and size")] public bool OptimisticRelayFileInfo { get; init; } = false; + + /// <summary> + /// Gets a value indicating whether SQLite cache sharing should be disabled (set to Private). + /// </summary> + [Argument(default, "no-sqlite-cache-sharing")] + [EnvironmentVariable("NO_SQLITE_CACHE_SHARING")] + [Description("disable SQLite cache sharing")] + public bool NoSqliteCacheSharing { get; init; } = false; + + /// <summary> + /// Gets a value indicating whether SQLite pooling should be disabled. + /// </summary> + [Argument(default, "no-sqlite-pooling")] + [EnvironmentVariable("NO_SQLITE_POOLING")] + [Description("disable SQLite pooling")] + public bool NoSqlitePooling { get; init; } = false; } /// <summary> @@ -1675,6 +1700,15 @@ namespace slskd [Description("connection inactivity timeout, in milliseconds")] [Range(1000, int.MaxValue)] public int Inactivity { get; init; } = 15000; + + /// <summary> + /// Gets the transfer connection timeout, in milliseconds. + /// </summary> + [Argument(default, "slsk-transfer-timeout")] + [EnvironmentVariable("SLSK_TRANSFER_TIMEOUT")] + [Description("transfer connection timeout, in milliseconds")] + [Range(30_000, int.MaxValue)] + public int Transfer { get; init; } = 60000; } /// <summary> @@ -1807,6 +1841,16 @@ namespace slskd public int Port { get; init; } = 5030; /// <summary> + /// Gets the HTTP listen unix domain socket (UDS) path. + /// </summary> + [Argument(default, "http-socket")] + [EnvironmentVariable("HTTP_SOCKET")] + [Description("HTTP listen unix domain socket (UDS) path for web UI")] + [AbsoluteFilePath] + [RequiresRestart] + public string Socket { get; init; } + + /// <summary> /// Gets HTTPS options. /// </summary> [Validate] |
