Added reverse proxy ip to nextcloud config

This commit is contained in:
Iván Chavero 2022-08-11 23:10:16 -06:00
parent 5b8d8ab7a9
commit d5c0166106
2 changed files with 9 additions and 0 deletions

View file

@ -194,6 +194,13 @@
tags:
- notify_push
- name: Configure Reverse Proxy IP address as trusted proxy
ansible.builtin.shell:
cmd: /usr/bin/php "{{ nextcloud_occ }}" config:system:set trusted_proxies 3 --value={{ reverse_proxy_ip }}
become: true
become_user: "{{ web_user }}"
when: reverse_proxy_ip
- name: "Import certificate to Nextcloud instance"
ansible.builtin.shell:
cmd: /usr/bin/php "{{ nextcloud_occ }}" security:certificates:import "{{ nginx_ssl_cert_file }}"

View file

@ -68,3 +68,5 @@ code_ssl_key: ""
code_ssl_cert: ""
code_ssl_ca: ""
# reverse proxy section
reverse_proxy_ip: 10.201.15.51