From cbcc0318f6fcaf8b41568c8f045243e92ee60bbb Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 2 Oct 2021 11:27:49 -0500 Subject: [PATCH] r/web/p-nextcloud: Set ProxyPreserveHost The Internet-facing reverse proxy needs to pass the correct Host header value in order for Nextcloud to correctly determine its own name. https://github.com/nextcloud/desktop/issues/1284 --- roles/websites/proxy-nextcloud/templates/nextcloud.httpd.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/websites/proxy-nextcloud/templates/nextcloud.httpd.conf.j2 b/roles/websites/proxy-nextcloud/templates/nextcloud.httpd.conf.j2 index b17ca14..6db1d97 100644 --- a/roles/websites/proxy-nextcloud/templates/nextcloud.httpd.conf.j2 +++ b/roles/websites/proxy-nextcloud/templates/nextcloud.httpd.conf.j2 @@ -8,6 +8,7 @@ SSLCertificateKeyFile /etc/pki/tls/private/pyrocufflink.net.key SSLProxyEngine On ProxyRequests Off +ProxyPreserveHost On ProxyPass / https://cloud0.pyrocufflink.blue/ ProxyPassReverse / https://cloud0.pyrocufflink.blue/