mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
example from https://github.com/Kozea/Radicale/discussions/1753
This commit is contained in:
parent
c0fd66eda6
commit
fb886796cc
1 changed files with 26 additions and 0 deletions
26
contrib/caddy/radicale.caddyfile
Normal file
26
contrib/caddy/radicale.caddyfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
## example for a dedidcated FQDN and radicale is served on / there
|
||||
## if you are serving on /radicale/ this needs to be prepended at the obvious places
|
||||
# taken from https://github.com/Kozea/Radicale/discussions/1753
|
||||
|
||||
caldav.example.com {
|
||||
# Append / if GETting /.web
|
||||
@get-root {
|
||||
method GET
|
||||
path /.web
|
||||
}
|
||||
|
||||
redir @get-root /.web/
|
||||
|
||||
# Do not auth on /.web/*
|
||||
@not-webui {
|
||||
not path /.web/*
|
||||
}
|
||||
|
||||
basic_auth @not-webui {
|
||||
USER HASH
|
||||
}
|
||||
|
||||
reverse_proxy localhost:5232 {
|
||||
header_up X-Remote-User {http.auth.user.id}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue