From e1893380651b11c94cb590cecfd55b3921b2df8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Viande?= Date: Tue, 18 Jun 2019 19:50:50 +0200 Subject: [PATCH] Config: add sentry_dsn entry --- README.md | 1 + root/etc/ansible/entrypoint.yml | 1 + root/etc/ansible/templates/parameters.yml.j2 | 3 +++ root/var/www/wallabag/app/config/parameters.yml | 3 +++ 4 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 9ede744..f82f1ce 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ Default login is `wallabag:wallabag`. - `-e SYMFONY__ENV__REDIS_PORT=...` (defaults to "6379", port of the target host) - `-e SYMFONY__ENV__REDIS_PATH=...`(defaults to "~", path of the unix socket file) - `-e SYMFONY__ENV__REDIS_PASSWORD=...` (defaults to "~", this is the password defined in the Redis server configuration) +- `-e SYMFONY__ENV__SENTRY_DSN=...` (defaults to "~", this is the data source name for sentry) - `-e POPULATE_DATABASE=...`(defaults to "True". Does the DB has to be populated or is it an existing one) ## SQLite diff --git a/root/etc/ansible/entrypoint.yml b/root/etc/ansible/entrypoint.yml index 3e4765a..5a90096 100644 --- a/root/etc/ansible/entrypoint.yml +++ b/root/etc/ansible/entrypoint.yml @@ -34,6 +34,7 @@ redis_port: "{{ lookup('env', 'SYMFONY__ENV__REDIS_PORT')|default('6379', true) }}" redis_path: "{{ lookup('env', 'SYMFONY__ENV__REDIS_PATH')|default('~', true) }}" redis_password: "{{ lookup('env', 'SYMFONY__ENV__REDIS_PASSWORD')|default('~', true) }}" + sentry_dsn: "{{ lookup('env', 'SYMFONY__ENV__SENTRY_DSN')|default('~', true) }}" tasks: diff --git a/root/etc/ansible/templates/parameters.yml.j2 b/root/etc/ansible/templates/parameters.yml.j2 index c65799b..712f1b1 100644 --- a/root/etc/ansible/templates/parameters.yml.j2 +++ b/root/etc/ansible/templates/parameters.yml.j2 @@ -51,3 +51,6 @@ parameters: redis_port: {{ redis_port }} redis_path: {{ redis_path }} redis_password: {{ redis_password }} + + # Sentry + sentry: {{ sentry_dsn }} diff --git a/root/var/www/wallabag/app/config/parameters.yml b/root/var/www/wallabag/app/config/parameters.yml index 3c36cbb..69c5ddb 100644 --- a/root/var/www/wallabag/app/config/parameters.yml +++ b/root/var/www/wallabag/app/config/parameters.yml @@ -59,3 +59,6 @@ parameters: redis_port: 6379 redis_path: null redis_password: null + + # Sentry + sentry_dsn: ~