-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.toml
69 lines (61 loc) · 2.03 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Used by app
[security.password]
# Critical: This value must be kept secret and should be changed in production
# Losing or changing this value will invalidate all existing password hashes
# IMPORTANT: Replace the placeholder below with your own secure random string
# Recommended: Use a cryptographically secure random generator to create a
# string of at least 32 characters including numbers, letters, and symbols
PASSWORD_PEPPER = "REPLACE_THIS_WITH_YOUR_OWN_SECRET_PEPPER_VALUE"
# Used by app
[security.auth]
# Recommended: Use a cryptographically secure random generator to create a
# string of at least 32 characters including numbers, letters, and symbols
JWT_SECRET = "REPLACE_THIS_WITH_YOUR_OWN_SECRET_VALUE"
# JWT_ALGORITHM can be set to "HS256", "HS384", "HS512", "RS256", "RS384", "RS512"
JWT_ALGORITHM = "HS256"
# SESSION_TTL_MIN must be at least 1 (number of minutes)
SESSION_TTL_MIN = 5
# SESSION_REFRESH_THRESHOLD must be a number (fraction, 0 < fraction < 1)
SESSION_REFRESH_THRESHOLD = 0.2
# Used by app
[security.cookies]
# Secure can be set to 0 or 1
# Choose 1 for production (secure=True, samesite="Strict")
SECURE = 0
# Used by app
[logging]
# Level can be set to "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"
LOG_LEVEL = "DEBUG"
# Used by app
[db.sqla_engine]
SQLA_ECHO = false
SQLA_ECHO_POOL = false
SQLA_POOL_SIZE = 50
SQLA_MAX_OVERFLOW = 10
# Used by app
# Used by docker compose
[db.postgres]
# Specify as in Docker network
POSTGRES_USER = "postgres"
POSTGRES_PASSWORD = "changethis"
POSTGRES_DB = "web_app_db_pg"
# Set host to localhost for local dev
# Don't forget to regenerate dotenv
# Don't forget to apply alembic rev
# Set host to web_app_db_pg for prod
#POSTGRES_HOST = "localhost"
POSTGRES_HOST = "web_app_db_pg"
POSTGRES_PORT = 5432
# Used by docker compose
[uvicorn]
UVICORN_HOST = "0.0.0.0"
UVICORN_PORT = 9999
# Used by Makefile
# No '/' after dir name !
[structure]
SRC_DIR = "src"
PYPROJECT_TOML = "pyproject.toml"
# Used by Makefile
[docker-compose]
COMPOSE_COMMAND = "docker compose"
COMPOSE_FILE = "docker-compose.yaml"