From c32d1bd31c9b6f8ab2601e227f01400e7f9338f1 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Sun, 12 Jul 2020 02:11:02 -0400 Subject: [PATCH] Add proxy value and remove host mount creation --- roles/nextcloud/tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 370ee5c..c4d41a2 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -1,9 +1,3 @@ -- name: Create Docker container bind mount directories - file: - path: ["{{ nextcloud_root }}", - "{{ nextcloud_dbroot }}"] - state: directory - - name: Create Nextcloud network docker_network: name: "{{ nextcloud_container }}" @@ -70,6 +64,12 @@ - nextcloud_status.stdout[:26] == "Nextcloud is not installed" - nextcloud_domain is defined +- name: Set Nextcloud's Trusted Proxy + command: 'docker exec --user www-data {{ nextcloud_container }} + php occ config:system:set trusted_proxies 0 + --value="{{ traefik_name }}"' + when: nextcloud_install.changed + - name: Set Nextcloud's Trusted Domain command: 'docker exec --user www-data {{ nextcloud_container }} php occ config:system:set trusted_domains 0