aboutsummaryrefslogtreecommitdiff
path: root/roles/nginx/templates
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2022-07-03 15:49:40 +0000
committerKumar Damani <me@kumardamani.net>2022-07-03 15:49:40 +0000
commita056fbe70752d9ac529d233c7c0c0c372d6ed0f1 (patch)
tree174fc8426a5638764378466c0867ae819027101b /roles/nginx/templates
parent715b4a9f53cf9de4f42887f84603fdfc4599261d (diff)
added searx
Diffstat (limited to 'roles/nginx/templates')
-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;