diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-08-24 23:07:13 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-08-24 23:07:13 +0200 |
commit | 14ab5ec766adf7e07a57d5ab63770f6c63df4af2 (patch) | |
tree | dd2cda70f2475f19b727aebd21010f83b85130d0 /Rocket.toml.example | |
parent | 87734ea6b0311903d42ed9ae55965bdf4ea13cb4 (diff) | |
download | ramaskrik-social-14ab5ec766adf7e07a57d5ab63770f6c63df4af2.tar.gz ramaskrik-social-14ab5ec766adf7e07a57d5ab63770f6c63df4af2.tar.bz2 ramaskrik-social-14ab5ec766adf7e07a57d5ab63770f6c63df4af2.zip |
Move database config to Rocket.toml.
This makes for one place to config everything instead of programatically
setting the config.
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 } |