Skip to content

Instantly share code, notes, and snippets.

@jjyr
Created July 10, 2017 03:17
Show Gist options
  • Save jjyr/ea239cc676fe091362461b54ded8a792 to your computer and use it in GitHub Desktop.
Save jjyr/ea239cc676fe091362461b54ded8a792 to your computer and use it in GitHub Desktop.
Caddyfile example
https://example.com {
gzip
log stdout
# force https
header / Strict-Transport-Security "max-age=31536000;"
# static files
root /app/public
proxy / http://web:3000 {
transparent
header_upstream X-Forwarded-Ssl on
except /assets /fonts /robots.txt /favicon.ico /404.html /422.html /500.html
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment