forked from web-mighty-io/web-mighty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.sample.toml
53 lines (49 loc) · 1.25 KB
/
server.sample.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
# Server configuration toml file
#
# Copy this file to `server.toml` and change it.
# Below are default configuration when you don't specify.
# host of this server
host = "localhost"
# host of this server from outside
outer_host = "example.com"
# port of http server
port = "80"
# verbose level
verbose = "4"
# secret key for cookie identification (random for default)
secret = "a093c76bd2c5f4e7dff6360c78bcb57a"
# path to public files (no need to change this)
serve_path = "public"
# uncomment log_path to log to file
# log_path = "server.log"
# for this configuration, see https://docs.rs/deadpool-postgres/latest/deadpool_postgres/config/struct.Config.html
[postgres]
# username for db
user = "admin"
# password for db
password = "admin"
# host of db
host = "127.0.0.1"
# port of db
port = "5432"
# dbname to save data
dbname = "web_mighty"
# remove https part if you want only http
[https]
# port of https server
port = "443"
# key file path for tls connection
key = "./key.pem"
# cert file path for tls connection
cert = "./cert.pem"
# true if redirect http connection to https
redirect = false
[mail]
# email address to send from
from = "admin@localhost"
# username to login
username = "admin"
# password to login
password = "admin"
# host of smtp server
host = "localhost"