Created
August 24, 2016 18:18
-
-
Save rdammkoehler/219f3715d34a4ba4a7aeabc4f9c9de54 to your computer and use it in GitHub Desktop.
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 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