mirror of
https://github.com/typeable/octopod.git
synced 2024-11-22 16:56:29 +03:00
iko
9bcfdcf065
* Added link titles * Preserve metadata ordering * Added dev run commands to Makefile * Added explanation to the development guide * Made caddy 2 the only config since we probably don't want to maintain two versions. * Use `id` instead of `ord` * Added ghcid version of Caddyfile * Renamed staging to deployment
26 lines
425 B
Caddyfile
26 lines
425 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
|
|
|
|
@3003 {
|
|
not path /octopod-css/* /frontend-result/* /dev/config.json
|
|
}
|
|
|
|
reverse_proxy @3003 localhost:3003
|
|
|
|
log {
|
|
output stdout
|
|
format single_field common_log
|
|
}
|