From a853df3cbcda4e2159048740a524a53eddbb4a74 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Wed, 29 May 2024 09:25:31 -0400 Subject: [PATCH] nextcloud-aio working with nginx --- nginx/https.conf | 4 +++- nginx/vars.yaml | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/nginx/https.conf b/nginx/https.conf index e654d57..94a9b8e 100644 --- a/nginx/https.conf +++ b/nginx/https.conf @@ -10,7 +10,9 @@ server { {%- for port in item.0.external.ports +%} listen 127.0.0.1:{{ port }} ssl proxy_protocol; {%- endfor +%} - listen 127.0.0.1:80; + + listen 127.0.0.1:80 proxy_protocol; + listen 127.0.0.1:81 proxy_protocol; if ($scheme = "http") { return 301 https://$host:443$request_uri; diff --git a/nginx/vars.yaml b/nginx/vars.yaml index 82f492a..71de704 100644 --- a/nginx/vars.yaml +++ b/nginx/vars.yaml @@ -128,3 +128,14 @@ http: ip: 192.168.1.254 port: 80 protocol: http + - external: + domains: + - nextcloud-aio.reeseapps.com + - nextcloud-aio.reeselink.com + ports: + - 443 + - 444 + internal: + ip: 10.1.175.237 + port: 11000 + protocol: http