diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-08-24 19:54:15 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-08-24 19:54:15 +0200 |
commit | 00b754727d9b16b13de7591b07d5bf0635029c4b (patch) | |
tree | f0e68c18b2578e6c20c66cbe736a5cafe2037423 /cluster/prod/app/plume/config | |
parent | 1172e8e511c26e43bb23bcc265465b7284485e17 (diff) | |
download | nixcfg-00b754727d9b16b13de7591b07d5bf0635029c4b.tar.gz nixcfg-00b754727d9b16b13de7591b07d5bf0635029c4b.zip |
Add postgres + WIP plume + fix diplonat
Diffstat (limited to 'cluster/prod/app/plume/config')
-rw-r--r-- | cluster/prod/app/plume/config/app.env | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cluster/prod/app/plume/config/app.env b/cluster/prod/app/plume/config/app.env new file mode 100644 index 0000000..4b389b5 --- /dev/null +++ b/cluster/prod/app/plume/config/app.env @@ -0,0 +1,32 @@ +BASE_URL=plume.deuxfleurs.fr +# generate one with openssl rand -base64 32 +ROCKET_SECRET_KEY={{ key "secrets/plume/secret_key" | trimSpace }} + +# Mail settings +#MAIL_SERVER=smtp.example.org +#MAIL_USER=example +#MAIL_PASSWORD=123456 +#MAIL_HELO_NAME=example.org + +# DATABASE SETUP +POSTGRES_PASSWORD={{ key "secrets/plume/pgsql_pw" | trimSpace }} +POSTGRES_USER=plume +POSTGRES_DB=plume +DATABASE_URL=postgres://plume:{{ key "secrets/plume/pgsql_pw" | trimSpace }}@psql-proxy.service.prod.consul:5432/plume +MIGRATION_DIRECTORY=migrations/postgres + +USE_HTTPS=0 +ROCKET_ADDRESS=:: +ROCKET_PORT={{ env "NOMAD_PORT_web_port" }} + +MEDIA_UPLOAD_DIRECTORY=/app/static/media +SEARCH_INDEX=/app/search_index + +LDAP_ADDR=ldap://bottin.service.prod.consul:389 +LDAP_BASE_DN=ou=users,dc=deuxfleurs,dc=fr +LDAP_USER_NAME_ATTR=cn +LDAP_USER_MAIL_ATTR=mail +LDAP_TLS=false + +RUST_BACKTRACE=1 +RUST_LOG=info |