Fix jwt-token

This commit is contained in:
2025-09-20 06:19:43 +02:00
parent 903aae4aae
commit 261a5032a1
5 changed files with 47 additions and 2 deletions

View File

@@ -56,6 +56,20 @@ server {
proxy_read_timeout 86400;
}
# Proxy uploads requests to backend (for logos and other files)
location /uggla/uploads/ {
proxy_pass http://backend:3001/uploads/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Cache uploaded files for 1 month
add_header Cache-Control "public, max-age=2592000";
proxy_read_timeout 86400;
}
# WebSocket proxy for Socket.IO
location /uggla/socket.io/ {
proxy_pass http://backend:3001/socket.io/;