15 lines
954 B
Python
15 lines
954 B
Python
from passlib.context import CryptContext
|
|
import os
|
|
|
|
|
|
JWT_SECRET = os.environ.get("JWT_SECRET", "F&M2eb%*T2dnhZqxw^ts6qotqF&M2eb%*T2dnhZqxw^ts6qotq")
|
|
debug = os.environ.get("DEV", "False").lower() in ("true", "1", "t")
|
|
hash_context = CryptContext(schemes=["bcrypt"])
|
|
db_url = os.environ.get("DATABASE_URL", "sqlite:///./data/data.sqlite")
|
|
use_optional_default_user = os.environ.get("CREATE_OPTIONAL_DEFAULT_USER", "False").lower() in ("true", "1", "t")
|
|
optional_default_user = [
|
|
{"name": "max", "hash": "$2b$12$8Q1lK3sF2ma53qvQND3lO.pq/28Qhl0AxcdIvKINrnAYnyMa0Syf6", "role": "user"},
|
|
{"name": "kim", "hash": "$2b$12$h9VK2r61oPMgGwmUSdwKVebwMxX.14c6nEEvqVuUicpYYeyWQkSoy", "role": "user"},
|
|
{"name": "ina", "hash": "$2b$12$Zk5GWsU6If4daZxNLMrGo..PEBFOv557OnRVMRwIIvTqJ4SQH882C", "role": "user"},
|
|
{"name": "ulf", "hash": "$2b$12$X38/m.5v1Ttqn4393MTfCuRCRUXL8v0fxhgj2I6H3UGMAloZc2kQC", "role": "user"}
|
|
] |