mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-27 21:02:41 +00:00
c620411d92
The 'keep_alive' configuration parameter allows HTTP keep-alive timeouts to be configured or for keep-alive to be disabled entirely.
35 lines
974 B
TOML
35 lines
974 B
TOML
# Except for the secret key, none of these are actually needed; Rocket has sane
|
|
# defaults. We show all of them here explicitly for demonstrative purposes.
|
|
|
|
[global.limits]
|
|
forms = 32768
|
|
json = 1048576 # this is an extra used by the json contrib module
|
|
msgpack = 1048576 # this is an extra used by the msgpack contrib module
|
|
|
|
[development]
|
|
address = "localhost"
|
|
port = 8000
|
|
workers = 1
|
|
keep_alive = 5
|
|
log = "normal"
|
|
hi = "Hello!" # this is an unused extra; maybe application specific?
|
|
is_extra = true # this is an unused extra; maybe application specific?
|
|
|
|
[staging]
|
|
address = "0.0.0.0"
|
|
port = 8000
|
|
workers = 8
|
|
keep_alive = 5
|
|
log = "normal"
|
|
# don't use this key! generate your own and keep it private!
|
|
secret_key = "8Xui8SN4mI+7egV/9dlfYYLGQJeEx4+DwmSQLwDVXJg="
|
|
|
|
[production]
|
|
address = "0.0.0.0"
|
|
port = 8000
|
|
workers = 12
|
|
keep_alive = 5
|
|
log = "critical"
|
|
# don't use this key! generate your own and keep it private!
|
|
secret_key = "hPRYyVRiMyxpw5sBB1XeCMN1kFsDCqKvBi2QJxBVHQk="
|