Spaces:
Paused
Paused
File size: 781 Bytes
725472c 08b6464 725472c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | {
admin off
log {
output stdout
format json
}
}
:7860 {
header {
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
X-XSS-Protection "1; mode=block"
}
handle /health* {
header Content-Type "application/json"
respond `{"status":"ok","service":"hf-framework"}`
}
handle /api/* {
reverse_proxy localhost:8000
}
handle /example/* {
uri strip_prefix /example
reverse_proxy localhost:8001
}
handle /webssh/* {
uri strip_prefix /webssh
reverse_proxy localhost:8002
}
handle {
header Content-Type "application/json; charset=utf-8"
respond `{"name":"hf-framework","version":"0.1.0","status":"running"}`
}
}
|