🔨」 fix: fixed nginx prod

This commit is contained in:
2025-10-24 17:04:25 +02:00
parent 9ab2d50930
commit 41cafaf8e7
2 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ node_modules/
# docker things # docker things
.env .env
.env.prod
# built files # built files
dist dist

View File

@ -13,11 +13,19 @@ server {
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
location / { location / {
proxy_pass http://transcendence-webserv:80/; proxy_pass http://transcendence-webserv:80;
proxy_http_version 1.1;
proxy_redirect off;
rewrite ^ / break;
}
location /assets/ {
proxy_pass http://transcendence-webserv:80/assets/;
proxy_http_version 1.1; proxy_http_version 1.1;
} }
location /api/v1/user/ { location /api/v1/user/ {
modsecurity off;
proxy_pass http://transcendence-api-user:3000/; proxy_pass http://transcendence-api-user:3000/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -29,6 +37,7 @@ server {
} }
location /api/v1/auth/ { location /api/v1/auth/ {
modsecurity off;
proxy_pass http://transcendence-api-auth:3000/; proxy_pass http://transcendence-api-auth:3000/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;