Created
June 12, 2018 10:06
-
-
Save mklarsen/d4209cf7c80e439d5daa6b5b31d3134c to your computer and use it in GitHub Desktop.
Green 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 green proxy config | |
# save as /etc/nginx/sites-available/green | |
server { | |
listen 80 default_server; | |
root /var/www/html; | |
index index.html; | |
server_name _; | |
location / { | |
proxy_pass http://127.0.0.1:8080; | |
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