diff options
Diffstat (limited to 'Rocket.toml.example')
-rw-r--r-- | Rocket.toml.example | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Rocket.toml.example b/Rocket.toml.example new file mode 100644 index 0000000..9dbee4a --- /dev/null +++ b/Rocket.toml.example @@ -0,0 +1,32 @@ +[global.databases] +# Change the database url for your setup +main = { url = "postgres:///...." } + +[development] +address = "localhost" +port = 8000 +workers = 2 +keep_alive = 5 +log = "normal" +limits = { forms = 32768 } + +[staging] +address = "0.0.0.0" +port = 8000 +workers = 2 +keep_alive = 5 +log = "normal" +# You have to generate a secret key, f.eks by `openssl rand -base64 32`. +# Resetting this value will invalidate any cookies etc. +secret_key = ... +limits = { forms = 32768 } + +[production] +address = "0.0.0.0" +port = 8000 +keep_alive = 5 +log = "critical" +# You have to generate a secret key, f.eks by `openssl rand -base64 32`. +# Resetting this value will invalidate any cookies etc. +secret_key = ... +limits = { forms = 32768 } |