Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rdammkoehler/219f3715d34a4ba4a7aeabc4f9c9de54 to your computer and use it in GitHub Desktop.

Select an option

Save rdammkoehler/219f3715d34a4ba4a7aeabc4f9c9de54 to your computer and use it in GitHub Desktop.
server {
listen 80;
root /var/www/nginx;
index index.html;
server_name ender.noradltd.com;
rewrite ^/e/(\d+)$ /f?id=$1 last;
# Testing
rewrite /franchises/(\d+)/completed_work(.*) /completed_work$2?franchise_id=$1;
location /e {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://localhost:18000/foresee;
}
location /f {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://localhost:18001/fortune;
}
location /f/h {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://localhost:18002/hello;
}
location /h {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://localhost:18002/hello;
}
location /i {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://localhost:18003/info;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment