From 695168fb73c87f733891fa6c88dd6addc1b81828 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 12 Mar 2020 11:43:51 +0100 Subject: [PATCH] rewrite well known urls correctly --- rootfs/etc/confd/templates/nextcloud.conf.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/confd/templates/nextcloud.conf.tmpl b/rootfs/etc/confd/templates/nextcloud.conf.tmpl index f57153d..6a821a0 100644 --- a/rootfs/etc/confd/templates/nextcloud.conf.tmpl +++ b/rootfs/etc/confd/templates/nextcloud.conf.tmpl @@ -29,11 +29,11 @@ server { } location = /.well-known/carddav { - return 301 $scheme://$host:$server_port/remote.php/dav; + return 301 http{{ if eq (getenv "ASSUME_HTTPS" "on") "on" }}s{{end}}://$host/remote.php/dav; } location = /.well-known/caldav { - return 301 $scheme://$host:$server_port/remote.php/dav; + return 301 http{{ if eq (getenv "ASSUME_HTTPS" "on") "on" }}s{{end}}://$host/remote.php/dav; } client_max_body_size {{getenv "MAX_UPLOAD_SIZE"}};