aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-10-19 20:29:15 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-10-19 20:29:15 +0200
commit5c31fbf0b12632b32912fa92be3d53b6e3902b91 (patch)
tree86c29d1e0e0d7677fc22cf85c3d23f41c79ec295 /app
parent3ef7b6775b6e390406b216f9b4a65e655780083e (diff)
downloadinfrastructure-5c31fbf0b12632b32912fa92be3d53b6e3902b91.tar.gz
infrastructure-5c31fbf0b12632b32912fa92be3d53b6e3902b91.zip
Add plume config template
Diffstat (limited to 'app')
-rw-r--r--app/config/configuration/.gitignore2
-rw-r--r--app/config/configuration/plume/app.env30
2 files changed, 31 insertions, 1 deletions
diff --git a/app/config/configuration/.gitignore b/app/config/configuration/.gitignore
index 056b4d2..86bd34a 100644
--- a/app/config/configuration/.gitignore
+++ b/app/config/configuration/.gitignore
@@ -25,7 +25,7 @@
!email/sogo/sogo.conf.tpl
!chat/**/*
-
+!plume/**/*
!directory/*/*
!traefik/traefik.toml
diff --git a/app/config/configuration/plume/app.env b/app/config/configuration/plume/app.env
new file mode 100644
index 0000000..78eccfe
--- /dev/null
+++ b/app/config/configuration/plume/app.env
@@ -0,0 +1,30 @@
+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.2.cluster.deuxfleurs.fr:5432/plume
+MIGRATION_DIRECTORY=migrations/postgres
+
+USE_HTTPS=0
+ROCKET_ADDRESS=0.0.0.0
+ROCKET_PORT=7878
+
+MEDIA_UPLOAD_DIRECTORY=/app/static/media
+SEARCH_INDEX=/app/search_index
+
+LDAP_ADDR=ldap://bottin2.service.2.cluster.deuxfleurs.fr:389
+LDAP_BASE_DN=ou=users,dc=deuxfleurs,dc=fr
+LDAP_USER_NAME_ATTR=cn
+LDAP_USER_MAIL_ATTR=mail
+LDAP_TLS=false
+