diff --git a/Caddyfile b/Caddyfile index ef71680001..2b20153e87 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,9 +1,11 @@ staging-api.lunie.io { proxy / lunieapi:4000 { + transparent + header_downstream Access-Control-Allow-Origin "*" websocket } } :9100 { basicauth / admin lunie1234 proxy / node_exporter:9100 -} +} \ No newline at end of file diff --git a/Caddyfile.prod b/Caddyfile.prod index 3f2f8103f4..ce1107be20 100644 --- a/Caddyfile.prod +++ b/Caddyfile.prod @@ -1,5 +1,7 @@ production-api.lunie.io { proxy / lunieapi:4000 { + transparent + header_downstream Access-Control-Allow-Origin "*" websocket } } diff --git a/package.json b/package.json index ade7031b3f..8670de622d 100644 --- a/package.json +++ b/package.json @@ -48,4 +48,4 @@ "nodemon": "^1.19.4", "prettier": "^1.19.1" } -} \ No newline at end of file +}