Skip to content

Instantly share code, notes, and snippets.

@mklarsen
Created June 12, 2018 10:05
Show Gist options
  • Save mklarsen/4da4ffe4abadc47743414804fe5c108f to your computer and use it in GitHub Desktop.
Save mklarsen/4da4ffe4abadc47743414804fe5c108f to your computer and use it in GitHub Desktop.
Blue ngix config (proxy for ex. docker container)
# Ngix blue proxy config
# save as /etc/nginx/sites-available/blue
server {
listen 80 default_server;
root /var/www/html;
index index.html;
server_name _;
location / {
proxy_pass http://127.0.0.1:8181;
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 X-Forwarded-Proto $scheme;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment