Created
September 5, 2025 16:41
-
-
Save pythoninthegrass/b57b566adabb268c859afb9e0da7cb7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/caddy/Caddyfile | |
{ | |
auto_https disable_redirects | |
} | |
:80 { | |
respond "Hello from HTTP port 80" | |
} | |
localhost { | |
respond "Hello from localhost HTTPS (trusted)" | |
} | |
1.2.3.4:443 { | |
tls internal | |
respond "Hello from 1.2.3.4 HTTPS (self-signed)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install caddy per https://caddyserver.com/docs/install then run the following: