Skip to content

Commit

Permalink
Modified Reverse-Proxy Examples for Caddy:
Browse files Browse the repository at this point in the history
- Moved existing Caddy example with basicauth to the right section
- Added basic Caddy example without using basicauth
  • Loading branch information
mldytech committed Jul 12, 2024
1 parent fe33d79 commit 53befe7
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
```
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 53befe7

Please sign in to comment.