radicale.caddyfile 925 B

1234567891011121314151617181920212223242526272829303132
  1. ## example for a dedidcated FQDN and radicale is served on / there
  2. ## if you are serving on /radicale/ this needs to be prepended at the obvious places
  3. # taken from https://github.com/Kozea/Radicale/discussions/1753
  4. caldav.example.com {
  5. # Append / if GETting /.web
  6. @get-root {
  7. method GET
  8. path /.web
  9. }
  10. redir @get-root /.web/
  11. # Do not auth on /.web/*
  12. @not-webui {
  13. not path /.web/*
  14. }
  15. # disable this in case authentication is handled by Radicale
  16. basic_auth @not-webui {
  17. USER HASH
  18. }
  19. reverse_proxy localhost:5232 {
  20. # disable this in case authentication is handled by Radicale
  21. header_up X-Remote-User {http.auth.user.id}
  22. # replace "HOST" with configured hostname of URL (FQDN) in client
  23. header_up Host HOST
  24. # replace "PORT" with configured port of URL in client
  25. header_up X-Forwarded-Port PORT
  26. }
  27. }