From a2ad0df0de043da4ae0de79407694b42143f885a Mon Sep 17 00:00:00 2001 From: Ivan Date: Fri, 26 Sep 2025 16:44:03 -0500 Subject: [PATCH] Add example configurations for Caddy --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index f1e1df4..3b05f36 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,40 @@ Python 3.9+ and Requests 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 - `--mtu`: Maximum transmission unit (default: 4096 bytes)