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

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