-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Rocket.example.toml
32 lines (26 loc) · 940 Bytes
/
Rocket.example.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
[global]
# uncomment the two lines below for docker (defaults to localhost)
# address = "0.0.0.0"
# port = 8000
template_dir = "web/templates"
# TLS is required! Yes, even if running behind a reverse proxy.
# If you're doing localhost testing, consider using mkcert to generate a valid certificate!
# https://github.com/FiloSottile/mkcert
[global.tls]
certs = "path/to/certs.pem"
key = "path/to/key.pem"
[global.limits]
# change the form submit limit (max bytes allowed)
forms = 524288 # 512 KiB
# change the api submit limit (max bytes allowed)
json = 1048576 # 1 MiB
# You can set a static secret key here instead of having a random one set on startup.
# Random secret keys will invalidate cookies on server restart, forcing users to log back in and to
# lose their session.
# Use `openssl rand -base64 32` to generate a key.
# [development]
# secret_key = "..."
# [staging]
# secret_key = "..."
# [production]
# secret_key = "..."