From ab0e3c4d0a96df8cf5f1eb341ba6dbd554fcf450 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 23 Aug 2024 09:58:46 -0700 Subject: [PATCH] update nginx conf --- Docker/nginx/conf.d/default.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Docker/nginx/conf.d/default.conf b/Docker/nginx/conf.d/default.conf index eb06e2746..8fdc625ee 100644 --- a/Docker/nginx/conf.d/default.conf +++ b/Docker/nginx/conf.d/default.conf @@ -14,6 +14,15 @@ server { index index.html index.htm; try_files $uri $uri/ /index.html; } + + location /api/ { + proxy_pass http://server:5000/api; + 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; + } } server { @@ -30,4 +39,13 @@ server { index index.html index.htm; try_files $uri $uri/ /index.html; } + + location /api/ { + proxy_pass http://server:5000/api; + 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; + } }