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; + } }