Added reverse proxy ip to nextcloud config
This commit is contained in:
parent
5b8d8ab7a9
commit
d5c0166106
2 changed files with 9 additions and 0 deletions
|
@ -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 }}"
|
||||
|
|
|
@ -68,3 +68,5 @@ code_ssl_key: ""
|
|||
code_ssl_cert: ""
|
||||
code_ssl_ca: ""
|
||||
|
||||
# reverse proxy section
|
||||
reverse_proxy_ip: 10.201.15.51
|
||||
|
|
Loading…
Reference in a new issue