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* { 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