-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.toml
More file actions
43 lines (33 loc) · 1.42 KB
/
config.example.toml
File metadata and controls
43 lines (33 loc) · 1.42 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
port = 8008
db_url = 'postgres://quizfreely_api:PASSWORD@localhost:5432/quizfreely_db'
# for production: pretty_log = false
# pretty print logs for easier debugging in development
# disable for production for better performance
pretty_log = true
# change base_path if the API is under a different path
# like example.org/api/ instead of example.org/
# (mabye when using a reverse proxy, mabye in production)
#
# base_path needs to start with a slash ('/')
#
# example: base_path = '/api/'
base_path = '/'
enable_oauth_google = false
# if enable_oauth_google is true,
# uncomment oauth_google_client_id, oauth_google_client_secret,
# oauth_google_callback_url, and oauth_final_redirect_url
# oauth_google_client_id = '123-abc456def789.apps.googleusercontent.com'
# oauth_google_client_secret = 'ABC-DEf123_4ab-CD567'
# oauth_google_callback_url = 'http://localhost:8080/api/oauth/google/callback'
# oauth_final_redirect_url = 'http://localhost:8080/sign-in'
storage_endpoint_url = 'http://localhost:3900'
storage_region = "garage"
storage_key_id = ''
storage_secret_key = ''
usercontent_bucket = "usercontent"
# WITH trailing slash
# prod example: usercontent_base_url = "https://usercontent.static.quizfreely.org/"
# dev example: usercontent_base_url = "http://usercontent.web.garage.localhost:3902/"
usercontent_base_url = "http://localhost:8080/usercontent/"
session_cleanup_cron_spec = "0 0 * * *"
term_image_cleanup_cron_spec = "10 0 * * *"