feat(config): add Cookies.cookiePath option to config

defaults to "/" as previously set by default options
This commit is contained in:
Panagiotis Papadopoulos
2025-02-10 08:33:31 +01:00
parent 48d4093274
commit 3c8723a404
2 changed files with 17 additions and 0 deletions

View File

@@ -32,6 +32,9 @@ export interface TriliumConfig {
keyPath: string;
trustedReverseProxy: boolean | string;
};
Cookies: {
cookiePath: string;
}
Sync: {
syncServerHost: string;
syncServerTimeout: string;
@@ -76,6 +79,11 @@ const config: TriliumConfig = {
process.env.TRILIUM_NETWORK_TRUSTEDREVERSEPROXY || iniConfig.Network.trustedReverseProxy || false
},
Cookies: {
cookiePath:
process.env.TRILIUM_COOKIES_COOKIEPATH || iniConfig?.Cookies?.cookiePath || "/"
},
Sync: {
syncServerHost:
process.env.TRILIUM_SYNC_SERVER_HOST || iniConfig?.Sync?.syncServerHost || "",