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

@@ -80,6 +80,30 @@ server {
proxy_read_timeout 60s;
}
# Upload routes for logos and other files
location /uploads/ {
# Add tenant header for backend
proxy_set_header X-Tenant-Subdomain $tenant;
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;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_pass http://backend;
proxy_redirect off;
# Cache uploaded files for 1 month
proxy_cache_valid 200 30d;
add_header Cache-Control "public, max-age=2592000";
# Timeouts
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
}
# Authentication routes with stricter rate limiting
location /auth/ {
limit_req zone=auth burst=10 nodelay;