Skip to content

Instantly share code, notes, and snippets.

@golf1052
Last active April 26, 2017 02:57
Show Gist options
  • Save golf1052/16f6a1b5141887ee3274 to your computer and use it in GitHub Desktop.
Save golf1052/16f6a1b5141887ee3274 to your computer and use it in GitHub Desktop.
My Caddy configuration file
# Sites
https://www.golf1052.com, https://golf1052.com {
root /var/www/golf1052.com/public_html
ext .html
errors {
404 404.html
}
rewrite {
r \.(py|pyc|exe|sh|txt|ini|cs$)
to /404.html
}
}
http://www.golf1052.com, http://golf1052.com {
redir / https://golf1052.com{uri} 301
}
https://blog.golf1052.com {
proxy / http://127.0.0.1:2368 {
transparent
}
}
https://attentionpassengers.com {
root /var/www/golf1052.com/projects/attentionpassengers/templates
}
# asp.net
http://webhook.golf1052.com {
tls off
proxy / http://127.0.0.1:8889 {
transparent
}
}
http://mbta.golf1052.com {
tls off
proxy / http://127.0.0.1:8891 {
transparent
}
}
https://status.golf1052.com {
proxy / http://127.0.0.1:8892 {
transparent
}
}
http://godbot.golf1052.com {
tls off
proxy / http://127.0.0.1:8893 {
transparent
}
}
# flask
http://attentionpassengers.golf1052.com {
tls off
proxy / http://127.0.0.1:5432 {
transparent
}
errors /var/log/caddy/attentionpassengers.error.log {
rotate_size 100
rotate_age 30
rotate_keep 10
}
}
https://venmo-for-slack.golf1052.com {
proxy / http://127.0.0.1:5678 {
transparent
}
errors /var/log/caddy/venmo.error.log {
rotate_size 100
rotate_age 30
rotate_keep 10
}
}
https://venmo.golf1052.com {
proxy / http://127.0.0.1:5678 {
transparent
}
}
# node
http://personality-viz.golf1052.com {
tls off
root /var/www/golf1052.com/projects/personality-viz/src
}
# Redirects
https://resume.golf1052.com {
redir / https://golf1052.com/documents/sanders_lauture_resume.pdf 302
}
http://facebook.golf1052.com {
tls off
redir / https://www.facebook.com/golf1052 302
}
http://github.golf1052.com {
tls off
redir / https://github.com/golf1052 302
}
http://imgur.golf1052.com {
tls off
redir / https://golf1052.imgur.com 302
}
http://linkedin.golf1052.com {
tls off
redir / https://www.linkedin.com/in/golf1052 302
}
http://reddit.golf1052.com {
tls off
redir / https://www.reddit.com/user/golf1052 302
}
http://steam.golf1052.com {
tls off
redir / http://www.steamcommunity.com/id/golf1052 302
}
http://twitch.golf1052.com {
tls off
redir / https://www.twitch.tv/golf1052 302
}
http://twitter.golf1052.com {
tls off
redir / https://www.twitter.com/golf1052 302
}
http://vimeo.golf1052.com {
tls off
redir / https://vimeo.com/user1947582 302
}
http://youtube.golf1052.com {
tls off
redir / https://www.youtube.com/1golf1052 302
}
http://rapid.golf1052.com {
tls off
redir / https://golf1052.com/rapid/index.html 302
}
http://hci.golf1052.com {
tls off
redir / https://golf1052.com/hci/index.html 302
}
http://awd.golf1052.com {
tls off
redir / https://golf1052.com/awd/index.html 302
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment