mirror of
https://github.com/typeable/octopod.git
synced 2024-11-23 01:03:45 +03:00
iko
cbcd09f114
* Migrate to haskell.nix for everything * Fixed build (?) * Fixed build * build frontend with ghcjs * Updated Makefile * Uglified js * Made frontend actually work (: * Increase swap * Added checkout back in (: * Updated VS Code settings * formatted cabal.project * cleaned up nix
28 lines
460 B
Caddyfile
28 lines
460 B
Caddyfile
http://localhost:8000
|
|
|
|
|
|
file_server
|
|
|
|
rewrite /api/* {path}
|
|
reverse_proxy /api/* localhost:3002
|
|
|
|
@production {
|
|
path_regexp production /static/(.*)
|
|
}
|
|
rewrite @production /octopod-css/production/{http.regexp.production.1}
|
|
|
|
rewrite /config.json /dev/config.json
|
|
rewrite * /frontend-result/{path}
|
|
|
|
|
|
@3003 {
|
|
not path /octopod-css/* /frontend-result/* /dev/config.json
|
|
}
|
|
|
|
reverse_proxy @3003 localhost:3003
|
|
|
|
log {
|
|
output stdout
|
|
format single_field common_log
|
|
}
|