-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-config.toml
65 lines (44 loc) · 1.39 KB
/
sample-config.toml
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
# ITPG backend config
# Port to listen on
port = "6666"
# Database backend (sqlite or postgres)
db-backend = "sqlite"
# database connection URL
db = "file:itpg.db?journal_mode=memory&sync_mode=off&mode=rwc"
# example for postgres
# db-backend = "postgres"
# db = "postgres://user@localhost:5432/db"
# users database where users are stored
users-db = "users.db"
# redis cache database URL
cache-db = "redis://localhost:6379"
# cache time-to-live in seconds
cache-ttl = 10
# log level (debug, info, warn, error, fatal)
log-level = "info"
# cookie timeout in minutes
cookie-timeout = 120
# environment variables for the SMTP server
smtp-env = ".env"
# password reset URL (link to client where users can reset passwords)
pass-reset-url = "https://demo.itpg.cc/resetpass"
# allowed origins for CORS
allowed-origins = ["https://itpg.cc"]
# mail domains that are allowed to create an account.
allowed-mail-domains = ["gmail.com", "yahoo.com", "tutanota.com", "outlook.com", "proton.me"]
# use SMTP instead of SMTPS
smtp = false
# use HTTP instead of HTTPS
http = false
# path to server certificate
cert = "server.crt"
# path to server key
key = "server.key"
# code validity in minutes
code-validity = 180
# code length (between 8 and 32)
code-length = 10
# minimum accepted password score computed by zxcvbn (between 0 and 4)
min-password-score = 3
# path to handlers json config
handlers = "handlers.json"