Skip to content

Instantly share code, notes, and snippets.

@kartben
Created October 14, 2025 09:06
Show Gist options
  • Save kartben/8f159d730df2f0e65368289b982e6c3b to your computer and use it in GitHub Desktop.
Save kartben/8f159d730df2f0e65368289b982e6c3b to your computer and use it in GitHub Desktop.
printf '%s\n' 'localhost:8443 {  ✔  15s   11:05:53  
tls internal
root * _build/html
file_server
encode zstd gzip
}
:8080 {
redir https://localhost:8443{uri} 308
}' | caddy run --config /dev/stdin --adapter caddyfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment