Last active
September 7, 2016 17:40
-
-
Save ecstasy2/b03381ca42d1df394decb14582cd8726 to your computer and use it in GitHub Desktop.
Nginx configuration to proxy all edyn micro services
This file contains 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
resolver 169.254.169.250; | |
server { | |
listen 80 default_server; | |
return 200 'Ok!'; | |
add_header Content-Type text/plain; | |
} | |
server { | |
listen 80; | |
server_name graphql.${STACK}.edyn.com; | |
set $upstream_endpoint "http://graphql-gateway:80"; | |
location / { | |
proxy_pass $upstream_endpoint; | |
include /etc/nginx/proxy_params; | |
} | |
} | |
server { | |
listen 80; | |
server_name api.identity.${STACK}.edyn.com; | |
set $upstream_endpoint "http://identity-api:80"; | |
location / { | |
proxy_pass $upstream_endpoint; | |
include /etc/nginx/proxy_params; | |
} | |
} | |
server { | |
listen 80; | |
server_name api.sensor.${STACK}.edyn.com; | |
set $upstream_endpoint "http://sensor-api:80"; | |
location / { | |
proxy_pass $upstream_endpoint; | |
include /etc/nginx/proxy_params; | |
} | |
} | |
server { | |
listen 80; | |
server_name api.valve.${STACK}.edyn.com; | |
set $upstream_endpoint "http://valve-api:80"; | |
location / { | |
proxy_pass $upstream_endpoint; | |
include /etc/nginx/proxy_params; | |
} | |
} | |
server { | |
listen 80; | |
server_name rabbitmq.${STACK}.edyn.com; | |
set $upstream_endpoint "http://rabbitmq:15672"; | |
location / { | |
proxy_pass $upstream_endpoint; | |
include /etc/nginx/proxy_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment