Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save solancer/dcb97865b79de92e3f2b7b2d1322da30 to your computer and use it in GitHub Desktop.
Save solancer/dcb97865b79de92e3f2b7b2d1322da30 to your computer and use it in GitHub Desktop.
Caddy config
:80
encode gzip
root * /Users/shared/server/components/web
route {
reverse_proxy /soc/* 127.0.0.1:9710
reverse_proxy /api/* 127.0.0.1:9720
reverse_proxy /fio/* 127.0.0.1:9730
try_files {path} /index.html
file_server browse
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment