rewrite well known urls correctly

This commit is contained in:
Sebastian Hugentobler 2020-03-12 11:43:51 +01:00
parent fd82b48e54
commit 695168fb73

View File

@ -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"}};