Преглед изворни кода

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

Peter Bieringer пре 3 месеци
родитељ
комит
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
     }
 }