Last active
September 23, 2019 19:59
-
-
Save jsturtevant/b332e8cad08391da215a361a120841ea to your computer and use it in GitHub Desktop.
nginx configuration for local oh services
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
server { | |
listen 8001; | |
#server_name my_site.local; | |
location /api/user { | |
proxy_set_header Host $host; | |
proxy_pass http://userprofile; | |
} | |
location /api/trips { | |
proxy_set_header Host $host; | |
proxy_pass http://trips; | |
} | |
location /api/poi { | |
proxy_set_header Host $host; | |
proxy_pass http://poi; | |
} | |
location /api/user-java { | |
proxy_set_header Host $host; | |
proxy_pass http://user-java; | |
} | |
location / { | |
proxy_set_header Host $host; | |
proxy_pass http://tripviewer; | |
} | |
} | |
} |
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
docker run --network customnw --name nginx -p 8001:8001 -v /c/projects/nginx.conf:/etc/nginx/nginx.conf -d nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment