Skip to content

Instantly share code, notes, and snippets.

@katopz
Created May 2, 2016 05:18
Show Gist options
  • Save katopz/c5fd6f7ba6a2277ecd91c6df68253754 to your computer and use it in GitHub Desktop.
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
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