From 3b2ab6c8a085d0c0fb1d87279b8cf4dc8f34472c Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 23 Oct 2022 22:41:18 +0200 Subject: [PATCH] Potentially fixed docker deployment #70 --- kdb-web/nginx.conf | 16 +--------------- .../src/environments/environment.development.ts | 2 +- kdb-web/src/environments/environment.prod.ts | 2 +- kdb-web/src/environments/environment.staging.ts | 2 +- 4 files changed, 4 insertions(+), 18 deletions(-) diff --git a/kdb-web/nginx.conf b/kdb-web/nginx.conf index e9469f30..7a9d7f16 100644 --- a/kdb-web/nginx.conf +++ b/kdb-web/nginx.conf @@ -24,21 +24,7 @@ http { } location /api { - proxy_pass http://kdb_bot_prod_1; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; - proxy_redirect off; - } - - location /api/socket.io { - proxy_http_version 1.1; - proxy_buffering off; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_pass http://kdb_bot_prod_1/api/socket.io; + proxy_pass http://kdb_bot_staging_1; } } } diff --git a/kdb-web/src/environments/environment.development.ts b/kdb-web/src/environments/environment.development.ts index 1b1a28e3..f5bb9730 100644 --- a/kdb-web/src/environments/environment.development.ts +++ b/kdb-web/src/environments/environment.development.ts @@ -4,7 +4,7 @@ export const environment = { production: false, - apiURL: "http://localhost:5000", + apiURL: "http://localhost:8044", }; /* diff --git a/kdb-web/src/environments/environment.prod.ts b/kdb-web/src/environments/environment.prod.ts index 4aa3b02b..ffb05978 100644 --- a/kdb-web/src/environments/environment.prod.ts +++ b/kdb-web/src/environments/environment.prod.ts @@ -1,4 +1,4 @@ export const environment = { production: true, - apiURL: "https://kdb.keksdose-gaming.de/", + apiURL: "https://kdb.keksdose-gaming.de", }; diff --git a/kdb-web/src/environments/environment.staging.ts b/kdb-web/src/environments/environment.staging.ts index 514ffb0f..a0504876 100644 --- a/kdb-web/src/environments/environment.staging.ts +++ b/kdb-web/src/environments/environment.staging.ts @@ -1,4 +1,4 @@ export const environment = { production: true, - apiURL: "https://kdb-test.keksdose-gaming.de/", + apiURL: "https://kdb-test.keksdose-gaming.de", };