mirror of
https://github.com/typeable/octopod.git
synced 2024-11-25 23:14:09 +03:00
43 lines
691 B
Caddyfile
43 lines
691 B
Caddyfile
localhost:8000
|
|
|
|
mime .css text/css
|
|
|
|
rewrite /static/styles {
|
|
r (.*)
|
|
to /octopod-css/production/styles/{1}
|
|
}
|
|
|
|
mime .js application/javascript
|
|
|
|
rewrite /static/vendors {
|
|
r (.*)
|
|
to /octopod-css/production/vendors/{1}
|
|
}
|
|
|
|
rewrite /static/scripts {
|
|
r (.*)
|
|
to /octopod-css/production/scripts/{1}
|
|
}
|
|
|
|
rewrite /static/images {
|
|
r (.*)
|
|
to /octopod-css/production/images/{1}
|
|
}
|
|
|
|
proxy /api localhost:3002 {
|
|
transparent
|
|
}
|
|
|
|
mime .json application/json
|
|
rewrite /config.json /octopod-config.json
|
|
|
|
rewrite /ghcjs /frontend-result/bin/frontend.jsexe/index.html
|
|
|
|
proxy / localhost:3003 {
|
|
transparent
|
|
websocket
|
|
except /octopod-css/ /frontend-result/ /octopod-config.json
|
|
}
|
|
|
|
log / stdout
|