Skip to content

Commit efaec13

Browse files
authored
Extract session duration configuration into an env variable (#461)
1 parent 9d28dd6 commit efaec13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/initializers/decidim.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
# How long can a user remained logged in before the session expires. Notice that
4545
# this is also maximum time that user can idle before getting automatically signed out.
46-
config.expire_session_after= 48.hours
46+
config.expire_session_after= (ENV["EXPIRE_SESSION_AFTER"].presence || 0.5).hours
4747
end
4848

4949
Decidim.menu :menu do |menu|

0 commit comments

Comments
 (0)