-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.yaml
90 lines (81 loc) · 1.67 KB
/
config.sample.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
debug: true
app:
name: "Quotepedia"
version: "0.0.0"
api:
max_avatar_size: 3_145_728 # 3 MB
min_password_length: 8
max_password_length: 128
min_author_name_length: 1
max_author_name_length: 32
min_collection_name_length: 2
max_collection_name_length: 48
max_collection_description_length: 256
max_search_params_limit: 100
path:
logs: "./logs"
media: "./media"
locales: "./src/i18n/locales"
templates: "./src"
jwt:
secret: "KEY"
algorithm: "HS256"
expire_minutes: 43200 # 30 days
otp:
min: 000_000
max: 999_999
expire_minutes: 10
redis:
host: "localhost"
port: 6379
password: ""
ssl: true
postgres:
username: "postgres"
password: "root"
port: 5432
host: "localhost"
path: "postgres"
smtp:
username: "[email protected]"
password: ""
port: 587
server: "smtp.example.com"
starttls: true
ssl_tls: false
use_credentials: true
validate_certs: true
logging:
version: 1
disable_existing_loggers: false
formatters:
basic:
class: uvicorn.logging.ColourizedFormatter
format: "%(levelprefix)s %(message)s"
verbose:
format: "%(asctime)s %(pathname)s:%(lineno)d %(levelname)s %(message)s"
datefmt: "%d.%m.%Y %H:%M:%S"
handlers:
console:
class: logging.StreamHandler
formatter: basic
stream: "ext://sys.stdout"
file:
class: logging.handlers.TimedRotatingFileHandler
formatter: verbose
filename: "./logs/app.log"
when: D
interval: 1
loggers:
root:
level: INFO
handlers:
- console
app:
level: DEBUG
handlers:
- file
sqlalchemy.engine:
level: WARNING
handlers:
- file