mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-29 05:42:35 +00:00
722ee93f8b
This commit involves several breaking changes: * `session_key` config param must be a 256-bit base64 encoded string. * `FromRequest` is implemented for `Cookies`, not `Cookie`. * Only a single `Cookies` instance can be retrieved at a time. * `Config::take_session_key` returns a `Vec<u8>`. * `Into<Header>` is implemented for `&Cookie`, not `Cookie`.
27 lines
649 B
TOML
27 lines
649 B
TOML
# Except for the session key, none of these are actually needed; Rocket has sane
|
|
# defaults. We show all of them here explicitly for demonstrative purposes.
|
|
|
|
[development]
|
|
address = "localhost"
|
|
port = 8000
|
|
workers = 1
|
|
log = "normal"
|
|
hi = "Hello!"
|
|
is_extra = true
|
|
|
|
[staging]
|
|
address = "0.0.0.0"
|
|
port = 80
|
|
log = "normal"
|
|
workers = 8
|
|
# don't use this key! generate your own and keep it private!
|
|
session_key = "8Xui8SN4mI+7egV/9dlfYYLGQJeEx4+DwmSQLwDVXJg="
|
|
|
|
[production]
|
|
address = "0.0.0.0"
|
|
port = 80
|
|
workers = 12
|
|
log = "critical"
|
|
# don't use this key! generate your own and keep it private!
|
|
session_key = "hPRYyVRiMyxpw5sBB1XeCMN1kFsDCqKvBi2QJxBVHQk="
|