You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
436 B
Caddyfile
43 lines
436 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 /
|
|
}
|
|
|
|
## Redeem view
|
|
rewrite /r {
|
|
to /
|
|
}
|
|
|
|
## test
|
|
proxy /t localhost:8880 {
|
|
transparent
|
|
}
|
|
|
|
#log /api stdout
|
|
log / stdout
|
|
|
|
#proxy /ws localhost:8880 {
|
|
# websocket
|
|
# transparent
|
|
#}
|
|
|
|
|
|
#tls self_signed
|