Created
May 2, 2016 05:18
-
-
Save katopz/c5fd6f7ba6a2277ecd91c6df68253754 to your computer and use it in GitHub Desktop.
Use nginx to forward proxy to Parse Docker at 192.168.99.100 // $ nano /usr/local/etc/nginx/nginx.conf // $ sudo nginx -t && sudo nginx -s relo
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
server { | |
listen 1337; | |
server_name localhost; | |
proxy_redirect off; | |
proxy_buffering off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
location / { | |
proxy_pass http://192.168.99.100:1337/; | |
} | |
} | |
server { | |
listen 4040 ; | |
server_name localhost; | |
proxy_redirect off; | |
proxy_buffering off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
location / { | |
proxy_pass http://192.168.99.100:4040/; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment