aboutsummaryrefslogtreecommitdiff
path: root/roles/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'roles/nginx')
-rw-r--r--roles/nginx/templates/app.nginx.conf.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/nginx/templates/app.nginx.conf.j2 b/roles/nginx/templates/app.nginx.conf.j2
index c87fe29..82c3610 100644
--- a/roles/nginx/templates/app.nginx.conf.j2
+++ b/roles/nginx/templates/app.nginx.conf.j2
@@ -8,7 +8,11 @@ server {
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
+{% if item.app == "nextcloud" %} {# Nextcloud requires https internally #}
+ proxy_pass https://127.0.0.1:{{ item.conf.port }};
+{% else %}
proxy_pass http://127.0.0.1:{{ item.conf.port }};
+{% endif %}
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;