24 lines
562 B
Nginx Configuration File
24 lines
562 B
Nginx Configuration File
user nginx;
|
|
worker_processes 1;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
location / {
|
|
# Use the placeholders for the proxy pass (these will be replaced by envsubst)
|
|
proxy_pass http://$BACKEND_ADDRESS:$BACKEND_PORT;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
}
|
|
}
|