Skip to content

Commit e6367d6

Browse files
committed
feat: Add initial Nginx reverse proxy and load balancer configuration for Docker Compose services.
1 parent 729a0bd commit e6367d6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

nginx/nginx.conf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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
# ========================================================================

0 commit comments

Comments
 (0)