From 0fc3f1657f80ddc92866533e144575d8b336eadb Mon Sep 17 00:00:00 2001 From: les Date: Wed, 6 Jan 2021 12:16:12 +0100 Subject: [PATCH] add nginx and restic from gancio deps --- roles/stable/gancio/meta/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/roles/stable/gancio/meta/main.yml b/roles/stable/gancio/meta/main.yml index a7704fd..23e42c9 100644 --- a/roles/stable/gancio/meta/main.yml +++ b/roles/stable/gancio/meta/main.yml @@ -11,3 +11,18 @@ dependencies: username: gancio password: "{{ database_password }}" database: gancio + + # install certbot, nginx and configure it as reverse proxy + - role: stable/nginx + when: with_nginx | bool + vars: + with_certbot: true + proxy_pass: http://localhost:8001 + + # backup etherpad database + - role: stable/restic + when: with_backup | bool + vars: + restic_databases: + - {name: 'gancio', dump_command: sudo -Hiu postgres pg_dump -Fc gancio} + restic_folders: ['/srv/gancio/uploads'] \ No newline at end of file