38 lines
395 B
Caddyfile
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
|