File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,25 @@ server {
166166 # proxy_request_buffering off; # Disable for large uploads
167167 }
168168
169+ # ========================================================================
170+ # UPLOADS ROUTING CONFIGURATION
171+ # ========================================================================
172+
173+ # Route upload requests to the backend service
174+ location /uploads/ {
175+ # Proxy to backend upstream server
176+ proxy_pass http ://backend/uploads/;
177+
178+ # Use HTTP/1.1 for better proxy functionality
179+ proxy_http_version 1.1;
180+
181+ # Standard proxy headers
182+ proxy_set_header Host $host ;
183+ proxy_set_header X-Real-IP $remote_addr ;
184+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
185+ proxy_set_header X-Forwarded-Proto $scheme ;
186+ }
187+
169188 # ========================================================================
170189 # FRONTEND ROUTING CONFIGURATION
171190 # ========================================================================
You can’t perform that action at this time.
0 commit comments