Update 000-default.conf

This commit is contained in:
Matte 2024-04-24 12:25:46 +03:00
parent d625bdbd0c
commit 04fd802d52

View File

@ -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;
@ -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;