-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
42 lines (38 loc) · 933 Bytes
/
settings.py
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
ENV = "production"
SERVER_NAME = "pfarre-machstrasse.at"
PREFERRED_URL_SCHEME = "https"
FILE_STORE = "./files"
SECRET_KEY = b"\x8dk\x0fw\xee \x8c2\xdfi\x07\xeaj\xac1."
TINIFY_KEY = "PP5kKs2F5VPQp9sDxWX33SMv2kzjKN4M"
# Log - Config
LOG_LEVEL = "INFO"
LOG_FORMAT = "[{name}] {levelname} {message}"
# SQLAlchemy - Config
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_DATABASE_URI = ""
# CORS - Config
CORS = {
"/api/.*": {
"origins": "*",
"allow_headers": "*"
}
}
# APISPEC - Config
APISPEC_SWAGGER_URL = "/swagger/"
APISPEC_SWAGGER_UI_URL = None,
APISPEC_TITLE = "Website Pfarre Machstrasse - API"
APISPEC_VERSION = "v1"
APISPEC_OAS_VERSION = "3.0.2",
APISPEC_SERVERS = [
{
"url": "https://pfarre-machstrasse.at",
"description": "Production Server"
}
]
APISPEC_AUTH = {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}