From a056fbe70752d9ac529d233c7c0c0c372d6ed0f1 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Sun, 3 Jul 2022 11:49:40 -0400 Subject: added searx --- roles/nginx/templates/app.nginx.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/nginx') 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; -- cgit v1.2.3