feat: update Dockerfiles to use Node 25-alpine and enhance nginx configuration for API proxying
This commit is contained in:
@@ -3,10 +3,15 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Docker DNS; resolve API service name at request time.
|
||||
resolver 127.0.0.11 ipv6=off valid=10s;
|
||||
set $api_upstream http://api:3000;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://api:3000/api/;
|
||||
proxy_pass $api_upstream/api/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
||||
Reference in New Issue
Block a user