reverted changes made to nginx config

This commit is contained in:
Sheen Capadngan
2023-05-11 00:52:49 +08:00
parent 0ef5779776
commit ccfe0b1eb9
+4 -5
View File
@@ -4,17 +4,16 @@ server {
location /api { location /api {
proxy_set_header X-Real-RIP $remote_addr; proxy_set_header X-Real-RIP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true; proxy_set_header X-NginX-Proxy true;
proxy_pass http://backend:4000; proxy_pass http://backend:4000;
proxy_redirect off; proxy_redirect off;
proxy_cookie_path / "/; secure; HttpOnly; SameSite=lax"; proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
} }
location / { location / {
include /etc/nginx/mime.types; include /etc/nginx/mime.types;