backend: add default behavior time to /api/settings (part of #321) (#499)

This commit is contained in:
Ilya Kreymer 2023-01-18 14:52:15 -08:00 committed by GitHub
parent 0fa60ebc45
commit 1dfa494210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,9 @@ def main():
settings = {
"registrationEnabled": os.environ.get("REGISTRATION_ENABLED") == "1",
"jwtTokenLifetime": JWT_TOKEN_LIFETIME,
"defaultBehaviorTimeSeconds": int(
os.environ.get("DEFAULT_BEHAVIOR_TIME_SECONDS", 300)
),
}
invites = init_invites(mdb, email)

View File

@ -49,6 +49,8 @@ data:
JWT_TOKEN_LIFETIME_MINUTES: "{{ .Values.jwt_token_lifetime_minutes | default 60 }}"
DEFAULT_BEHAVIOR_TIME_SECONDS: "{{ .Values.default_behavior_time_seconds }}"
WEB_CONCURRENCY: "{{ .Values.backend_workers | default 4 }}"
IDLE_TIMEOUT: "{{ .Values.profile_browser_idle_seconds | default 60 }}"

View File

@ -15,6 +15,9 @@ volume_storage_class:
registration_enabled: "0"
jwt_token_lifetime_minutes: 1440
# default time to run behaviors on each page (in seconds)
default_behavior_time_seconds: 300
# if set to "1", allow inviting same user to same org multiple times
allow_dupe_invites: "0"