comparison libervia/server/constants.py @ 1479:095e94ca6728

pages: disable CSRF token check when service profile is used: CSRF token check doesn't make sense when no user is logged in, and it causes trouble for caching. fix 400
author Goffi <goffi@goffi.org>
date Fri, 22 Oct 2021 16:04:23 +0200
parents 396d5606477f
children ec3ad9abf9f9
comparison
equal deleted inserted replaced
1478:10ccad665d57 1479:095e94ca6728
24 APP_NAME = "Libervia Web" 24 APP_NAME = "Libervia Web"
25 APP_COMPONENT = "web" 25 APP_COMPONENT = "web"
26 APP_NAME_ALT = APP_NAME 26 APP_NAME_ALT = APP_NAME
27 APP_NAME_FILE = "libervia_web" 27 APP_NAME_FILE = "libervia_web"
28 CONFIG_SECTION = APP_COMPONENT.lower() 28 CONFIG_SECTION = APP_COMPONENT.lower()
29 SERVICE_PROFILE = "libervia" # the SàT profile that is used for exporting the service 29 # the Libervia profile that is used for public operations (when nobody is connected)
30 SERVICE_PROFILE = "libervia"
30 31
31 SESSION_TIMEOUT = 7200 # Session's timeout, after that the user will be disconnected 32 SESSION_TIMEOUT = 7200 # Session's timeout, after that the user will be disconnected
32 HTML_DIR = "html/" 33 HTML_DIR = "html/"
33 THEMES_DIR = "themes/" 34 THEMES_DIR = "themes/"
34 THEMES_URL = "themes" 35 THEMES_URL = "themes"