diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Move the cookie-signing secret out of the cachev2.3.0
Diffstat (limited to 'custom/extensions/auth-file.lua')
-rw-r--r--custom/extensions/auth-file.lua2
1 file changed, 1 insertion, 1 deletion
diff --git a/custom/extensions/auth-file.lua b/custom/extensions/auth-file.lua
index d003092..2553233 100644
--- a/custom/extensions/auth-file.lua
+++ b/custom/extensions/auth-file.lua
@@ -90,7 +90,7 @@ local repos_filename = "/etc/cgit-auth/repos"
-- must be persistent and writable by cgit. Prefer a path OUTSIDE the cache
-- root, because pruning the cache would delete a secret kept inside it and
-- invalidate every live session. This file should not be world-readable.
-local secret_filename = "/var/cache/cgit/auth-secret"
+local secret_filename = "/var/lib/cgit/auth-secret"
-- How long a login stays valid, in seconds. Default one week.
local session_seconds = 7 * 24 * 60 * 60