web-app-temp / nginx.conf
leothesouthafrican's picture
docker local
b978eed
raw
history blame contribute delete
514 Bytes
events {}
http {
upstream backend {
server backend:5000;
}
upstream frontend {
server frontend:3000;
}
server {
listen 8081;
location /api/ {
proxy_pass http://backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location / {
proxy_pass http://frontend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
}