Skip to content

Commit 880e970

Browse files
committed
longer session times
1 parent 01f8fd4 commit 880e970

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Graphs/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS').split(',') if os.getenv('ALLOWED_HOSTS') else []
2525

26+
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
27+
SESSION_COOKIE_AGE = 365 * 60 * 24 * 60
28+
2629
LOGIN_REDIRECT_URL = "index"
2730
LOGOUT_REDIRECT_URL = "index"
2831

docker-compose.yml.template

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ services:
77
- ./postgresql:/var/lib/postgresql/data
88
env_file:
99
- ./.env
10-
networks:
11-
- default
1210

1311
web_graphs:
1412
privileged: true
@@ -22,8 +20,6 @@ services:
2220
- /sys:/sys
2321
depends_on:
2422
- db_graphs
25-
networks:
26-
- default
2723

2824
nginx_graphs:
2925
image: "nginx"

0 commit comments

Comments
 (0)