From ca220984cd11dbfb4acc1d944865c39bee7538e9 Mon Sep 17 00:00:00 2001 From: iambeone Date: Thu, 28 Nov 2019 22:43:29 +0500 Subject: [PATCH] Aleksei/terra url change (#146) * terra url changed * change soju-0010 to soju-0012 * cors added to caddyfiles * cors added to caddyfiles --- Caddyfile | 4 +++- Caddyfile.prod | 2 ++ package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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 +}