Fix jwt-token
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user