Add proxy value and remove host mount creation
This commit is contained in:
parent
8654778724
commit
c32d1bd31c
@ -1,9 +1,3 @@
|
|||||||
- name: Create Docker container bind mount directories
|
|
||||||
file:
|
|
||||||
path: ["{{ nextcloud_root }}",
|
|
||||||
"{{ nextcloud_dbroot }}"]
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Create Nextcloud network
|
- name: Create Nextcloud network
|
||||||
docker_network:
|
docker_network:
|
||||||
name: "{{ nextcloud_container }}"
|
name: "{{ nextcloud_container }}"
|
||||||
@ -70,6 +64,12 @@
|
|||||||
- nextcloud_status.stdout[:26] == "Nextcloud is not installed"
|
- nextcloud_status.stdout[:26] == "Nextcloud is not installed"
|
||||||
- nextcloud_domain is defined
|
- 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
|
- name: Set Nextcloud's Trusted Domain
|
||||||
command: 'docker exec --user www-data {{ nextcloud_container }}
|
command: 'docker exec --user www-data {{ nextcloud_container }}
|
||||||
php occ config:system:set trusted_domains 0
|
php occ config:system:set trusted_domains 0
|
||||||
|
Loading…
Reference in New Issue
Block a user