From 04fd802d52d5b95ebf712c2bc0e85ab957771f50 Mon Sep 17 00:00:00 2001 From: Matte <51192395+MatteZ02@users.noreply.github.com> Date: Wed, 24 Apr 2024 12:25:46 +0300 Subject: [PATCH] Update 000-default.conf --- files/nginx/conf/000-default.conf | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/files/nginx/conf/000-default.conf b/files/nginx/conf/000-default.conf index 84d87e2..759d95f 100644 --- a/files/nginx/conf/000-default.conf +++ b/files/nginx/conf/000-default.conf @@ -64,6 +64,14 @@ server { gzip_types *; gunzip on; + location / { + proxy_pass http://127.0.0.1:5000/; + proxy_set_header Host $http_host; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } + location /api/ { proxy_pass http://127.0.0.1:3000/api/; proxy_set_header Host $http_host; @@ -72,7 +80,7 @@ server { proxy_set_header Connection "upgrade"; } - location /uploads/ { + location /uploads/ { proxy_pass http://127.0.0.1:3000/uploads/; proxy_set_header Host $http_host; proxy_http_version 1.1; @@ -80,14 +88,6 @@ server { proxy_set_header Connection "upgrade"; } - location / { - proxy_pass http://127.0.0.1:5000/; - proxy_set_header Host $http_host; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - } - if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE)$ ) { return 405;