Created
June 12, 2018 10:05
-
-
Save mklarsen/4da4ffe4abadc47743414804fe5c108f to your computer and use it in GitHub Desktop.
Blue ngix config (proxy for ex. docker container)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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