diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-05-13 04:20:44 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-05-13 04:20:44 +0200 |
commit | 0410643732195626e8be8bc1b2c6fbc23b3b3cc3 (patch) | |
tree | 571a4fcdcdac29801091a1dd0d50b4248a178cf0 /roles/apps/nextcloud | |
parent | install binwalk to ch-equinox-* (diff) |
make nginx vhost templates more generic
Diffstat (limited to 'roles/apps/nextcloud')
-rw-r--r-- | roles/apps/nextcloud/tasks/main.yml | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/roles/apps/nextcloud/tasks/main.yml b/roles/apps/nextcloud/tasks/main.yml index 474d0d88..8d930b9a 100644 --- a/roles/apps/nextcloud/tasks/main.yml +++ b/roles/apps/nextcloud/tasks/main.yml @@ -162,13 +162,16 @@ template: generic-proxy-no-buffering-with-acme acme: true hostnames: "{{ item.value.hostnames }}" - client_max_body_size: "0" - proxy_pass: "http://127.0.0.1:{{ item.value.port }}" - proxy_redirect: - - redirect: "http://$host/" - replacement: "https://$host/" - - redirect: "http://$host:8080/" - replacement: "https://$host/" + locations: + '/': + proxy_pass: "http://127.0.0.1:{{ item.value.port }}" + proxy_redirect: + - redirect: "http://$host/" + replacement: "https://$host/" + - redirect: "http://$host:8080/" + replacement: "https://$host/" + extra_directives: |- + client_max_body_size 0; include_role: name: nginx/vhost |