1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-10 18:40:53 +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* { handle_path /radicale/* {
basicauth { uri strip_prefix /radicale
user hash
}
reverse_proxy localhost:5232 { reverse_proxy localhost:5232 {
header_up +X-Script-Name "/radicale" header_up X-Script-Name /radicale
header_up +X-remote-user "{http.auth.user.id}"
} }
} }
``` ```
@ -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: Example **Apache** configuration:
```apache ```apache