Modified Reverse-Proxy Examples for Caddy:
- Moved existing Caddy example with basicauth to the right section - Added basic Caddy example without using basicauth
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user