Просмотр исходного кода

add hints related to auth and move, related to https://github.com/Kozea/Radicale/issues/1912

Peter Bieringer 3 месяцев назад
Родитель
Сommit
a940289798
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      contrib/caddy/radicale.caddyfile

+ 6 - 0
contrib/caddy/radicale.caddyfile

@@ -16,11 +16,17 @@ caldav.example.com {
         not path /.web/*
     }
 
+    # disable this in case authentication is handled by Radicale
     basic_auth @not-webui {
         USER HASH
     }
 
     reverse_proxy localhost:5232 {
+        # disable this in case authentication is handled by Radicale
         header_up X-Remote-User {http.auth.user.id}
+        # replace "HOST" with configured hostname of URL (FQDN) in client
+        header_up Host HOST
+        # replace "PORT" with configured port of URL in client
+        header_up X-Forwarded-Port PORT
     }
 }