1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Merge pull request #1541 from mldytech/master

Modified Reverse-Proxy Examples for Caddy
This commit is contained in:
Peter Bieringer 2024-07-12 17:59:54 +02:00 committed by GitHub
commit 055489f79c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -350,16 +350,13 @@ location /radicale/ { # The trailing / is important!
}
```
Example **Caddy** configuration with basicauth from Caddy:
Example **Caddy** configuration:
```Caddy
handle_path /radicale* {
basicauth {
user hash
}
```
handle_path /radicale/* {
uri strip_prefix /radicale
reverse_proxy localhost:5232 {
header_up +X-Script-Name "/radicale"
header_up +X-remote-user "{http.auth.user.id}"
header_up X-Script-Name /radicale
}
}
```
@ -440,6 +437,21 @@ location /radicale/ {
}
```
Example **Caddy** configuration:
```
handle_path /radicale/* {
uri strip_prefix /radicale
basicauth {
USER HASH
}
reverse_proxy localhost:5232 {
header_up X-Script-Name /radicale
header_up X-remote-user {http.auth.user.id}
}
}
```
Example **Apache** configuration:
```apache