bit4sat/web/Caddyfile
2019-04-07 12:30:43 +02:00

38 lines
395 B
Caddyfile

0.0.0.0
root dist
ext .html
header / {
Content-Security-Policy "default-src * 'unsafe-eval' 'unsafe-inline' data: ;"
}
## API
proxy /api localhost:8880 {
transparent
}
## Download rewrite
rewrite /d {
to /
}
## test
proxy /t localhost:8880 {
transparent
}
#log /api stdout
log / stdout
#proxy /ws localhost:8880 {
# websocket
# transparent
#}
#tls self_signed