Skip to content

Commit

Permalink
Caddy v2
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed May 22, 2020
1 parent 6fbc153 commit 358bec5
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions Caddyfile
@@ -1,31 +1,10 @@
# https://caddyserver.com/docs
# https://caddyserver.com/docs/caddyfile/directives

http://rssbox.localhost {
on startup rackup
proxy / http://localhost:9292 {
transparent
}
http://localhost {
reverse_proxy http://localhost:3000
}


# For https:
# openssl req -new -x509 -sha256 -days 3650 -nodes -newkey rsa:4096 -keyout rssbox.key -out rssbox.crt -subj /CN=rssbox.test

# http://rssbox.test:3000 {
# redir / https://{host}{uri}
# }
# https://rssbox.test:8443 {
# tls rssbox.crt rssbox.key
# on startup rackup &
# proxy / http://localhost:9292 {
# transparent
# }
# }

# For pow:
# https://rssbox.test:8443 {
# tls rssbox.crt rssbox.key
# proxy / http://localhost:20559 {
# transparent
# }
# https://localhost {
# tls internal
# reverse_proxy http://localhost:3000
# }

0 comments on commit 358bec5

Please sign in to comment.