Skip to content

Commit

Permalink
Update documentation to support Caddy V2 (#1657)
Browse files Browse the repository at this point in the history
* Update index.md

Change Caddy example config to the current V2 config.

* Simplify config

* Include legacy config as well
  • Loading branch information
tardisx authored Jul 21, 2023
1 parent 9c718cb commit 235f0da
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions site/src/docs/manuals/subdomain/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,35 @@ The `nginx.conf` would then look something like:

### Caddy configuration

Example of Caddy configuration (`Caddyfile`) running remark42 service on `example.com/remark42/`:
Example of Caddy 2 configuration (`Caddyfile`) running remark42 service on `example.com/remark42/`, proxying
requests under the path /remark42 through to the docker container:

```
example.com {
root * /srv/www
log {
output file /logs/example.com.access.log
}
# remark42
handle_path /remark42* {
reverse_proxy remark42:8080
}
file_server
}
```

If you are using a legacy version (v1) of Caddy, the following configuration would be appropriate:

```
example.com {
gzip
tls mail@example.com
root /srv/www
log /logs/access.log
log /logs/example.com.access.log
# remark42
proxy /remark42/ http://remark42:8080/ {
Expand Down

0 comments on commit 235f0da

Please sign in to comment.