[docs] fix caddy configuration

This commit is contained in:
Keerthana
2025-06-10 09:38:16 +05:30
parent d9d4ebdc01
commit 8339e9e1ca
2 changed files with 12 additions and 4 deletions

View File

@@ -197,7 +197,7 @@ ports). The web server of choice in this guide is
[Caddy](https://caddyserver.com) because with caddy you don't have to manually
configure/setup SSL ceritifcates as caddy will take care of that.
```sh
``` groovy
photos.yourdomain.com {
reverse_proxy http://localhost:3001
# for logging
@@ -219,6 +219,7 @@ Next, start the caddy server :).
sudo systemctl enable caddy
sudo systemctl daemon-reload
sudo systemctl start caddy
```

View File

@@ -32,10 +32,17 @@ After the installation is complete, a `Caddyfile` is created on the path
`/etc/caddy/`. This file is used to configure reverse proxies among other
things.
```yaml
```groovy
# Caddyfile - myente.xyz is just an example.
api.myente.xyz { reverse_proxy http://localhost:8080 } ente.myente.xyz {
reverse_proxy http://localhost:3000 }
api.myente.xyz {
reverse_proxy http://localhost:8080
}
ente.myente.xyz {
reverse_proxy http://localhost:3000
}
#...and so on for other endpoints
```