aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-11-22 18:36:31 -0600
committerGitHub <noreply@github.com>2025-11-22 18:36:31 -0600
commit47490e366b5bc4b2a1679fba50655697afbe7137 (patch)
treeae98bb4fb66d20e5fecd69267bcbb17d80c4986b /src/slskd/Core/Options.cs
parent2e073014a003fc4e972a9a2677fccd3d30074cd2 (diff)
parent6ba7311d48b95ca75f49b3b28c1a8db810f87fe1 (diff)
downloadslskd-47490e366b5bc4b2a1679fba50655697afbe7137.tar.gz
Merge branch 'master' into dependabot/npm_and_yarn/src/web/axios-0.30.2
Diffstat (limited to 'src/slskd/Core/Options.cs')
-rw-r--r--src/slskd/Core/Options.cs35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 352d23e9..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>
@@ -1812,7 +1846,6 @@ namespace slskd
[Argument(default, "http-socket")]
[EnvironmentVariable("HTTP_SOCKET")]
[Description("HTTP listen unix domain socket (UDS) path for web UI")]
- [FileDoesNotExist]
[AbsoluteFilePath]
[RequiresRestart]
public string Socket { get; init; }