From b20e483d5951695899bc3f847864f7b4c948d930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Wed, 4 May 2022 11:01:01 +0200 Subject: [PATCH] [ADD] nextcloud domain to authorize access from whitelists --- tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index f88cc29..dc6b693 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -51,9 +51,12 @@ # Set correct variables in configuration files # TODO : replace by writing on nextcloud volume configuration file and restart nextcloud -- name: set trusted domain +- name: set trusted domain 1 command: docker exec -u www-data nextcloud php occ --no-warnings "config:system:set" trusted_domains 1 --value="{{ cloud_url }}" +- name: set trusted domain 2 + command: docker exec -u www-data nextcloud php occ --no-warnings "config:system:set" trusted_domains 1 --value="nextcloud" + - name: overwrite protocol command: docker exec -u www-data nextcloud php occ --no-warnings "config:system:set" overwriteprotocol --value="https" -- GitLab