-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
98 lines (91 loc) · 1.87 KB
/
config.example.yaml
File metadata and controls
98 lines (91 loc) · 1.87 KB
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
91
92
93
94
95
96
97
98
server:
host: 0.0.0.0
port: 8080
reload: false
workers: 1
run_mode: dev
title: FastAPI Keystone
description: FastAPI Keystone
version: 0.0.1
tenant_enabled: true
middleware:
trusted_host:
enabled: true
allowed_hosts: ["*"]
www_redirect: true
simple_trace:
enabled: true
etag:
enabled: true
hsts:
enabled: false
force_https: false
gzip:
enabled: true
minimum_size: 1024
cors:
enabled: true
allow_credentials: true
allow_origins: ["*"]
allow_methods: ["*"]
allow_headers: ["*"]
logger:
enable: true
level: info
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
file: logs/app.log
console: true
databases:
default:
enable: true
driver: postgresql+asyncpg
host: 127.0.0.1
port: 5432
user: postgres
password: postgres
database: fastapi_keystone
echo: true
pool_size: 20
max_overflow: 10
pool_timeout: 10
extra:
isolation_level: READ COMMITTED
connect_args:
command_timeout: 10
server_settings:
application_name: fastapi_keystone
statement_timeout: 10000
lock_timeout: 5000
main:
enable: true
driver: postgresql+asyncpg
host: 127.0.0.1
port: 5432
user: postgres
password: postgres
database: fastapi_keystone
redis:
host: 127.0.0.1
port: 6379
password: null
database: 0
max_connections: 10
enable: true
email:
smtp_host: smtp.gmail.com
smtp_port: 587
username: your_email@gmail.com
password: your_password
use_tls: true
from_address: noreply@example.com
cache:
type: redis
ttl: 3600
prefix: "fastapi_keystone:"
enable_compression: false
auth:
secret_key: your-secret-key-here
algorithm: HS256
access_token_expire_minutes: 30
refresh_token_expire_days: 7
enable_refresh_token: true