Add example configurations for Caddy

This commit is contained in:
2025-09-26 16:44:03 -05:00
parent abb9a80b1f
commit a2ad0df0de

View File

@@ -51,6 +51,40 @@ Python 3.9+ and Requests
name = HTTP Interface name = HTTP Interface
``` ```
### Example using Caddy
#### Using a main domain
```
example.com {
reverse_proxy 127.0.0.1:8080
header {
# Remove server identification
-Server
# Add security headers
X-Content-Type-Options nosniff
}
}
```
#### Using a subdomain
```
api1.example.com {
reverse_proxy 127.0.0.1:8080
header {
# Remove server identification
-Server
# Add security headers
X-Content-Type-Options nosniff
}
}
```
more examples will be available soon.
### Options ### Options
- `--mtu`: Maximum transmission unit (default: 4096 bytes) - `--mtu`: Maximum transmission unit (default: 4096 bytes)