1
0
Fork 0
host-port-ingress-proxy/nginx.conf

34 lines
838 B
Nginx Configuration File

user nginx;
worker_processes 1;
events {
worker_connections 1024;
}
http {
default_type application/octet-stream;
server {
listen 80;
# Define MIME type
types {
text/html html htm shtml;
}
location / {
# Use the placeholders for the proxy pass
proxy_pass ${PROTOCOL}://${BACKEND_ADDRESS}:${BACKEND_PORT};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "";
proxy_buffering off;
proxy_ssl_verify off;
}
}
}