mining-pool/deployment/caddyfile

18 lines
468 B
Text

# Catch-all vhost
:80 {
root /var/www
proxy /leafApi 127.0.0.1:8000
proxy /api 127.0.0.1:8001 {
without /api
}
proxy /socket.io 127.0.0.1:8001 {
header_upstream Connection {>Connection}
header_upstream Upgrade {>Upgrade}
}
header / {
Access-Control-Allow-Methods "GET, POST, OPTIONS"
Access-Control-Allow-Headers "Content-Type, x-access-token"
}
gzip
mime .manifest text/cache-manifest
}