Permalink
Switch branches/tags
Nothing to show
Find file Copy path
4e54d8c Apr 5, 2016
1 contributor

Users who have contributed to this file

64 lines (51 sloc) 1.42 KB
# microservice1 proxy config.
# A block like this needs to be included for each project
# behind the proxy.
server {
listen 80;
listen 443 ssl http2;
server_name microservice1.test;
# Configure SSL
ssl_certificate /etc/ssl/certs/nginx/microservice1-test.cert;
ssl_certificate_key /etc/ssl/certs/nginx/microservice1-test.key;
include /etc/nginx/includes/ssl.conf;
location / {
include /etc/nginx/includes/proxy.conf;
proxy_pass http://microservice1_app_1;
}
access_log off;
error_log /var/log/nginx/error.log error;
}
# microservice2 proxy config.
server {
listen 80;
listen 443 ssl http2;
server_name microservice2.test;
# Configure SSL
ssl_certificate /etc/ssl/certs/nginx/microservice2-test.cert;
ssl_certificate_key /etc/ssl/certs/nginx/microservice2-test.key;
include /etc/nginx/includes/ssl.conf;
location / {
include /etc/nginx/includes/proxy.conf;
proxy_pass http://microservice2_app_1;
}
access_log off;
error_log /var/log/nginx/error.log error;
}
# Catch all
server {
listen 80 default_server;
server_name _;
root /var/www/html;
charset UTF-8;
error_page 404 /backend-not-found.html;
location = /backend-not-found.html {
allow all;
}
location / {
return 404;
}
access_log off;
log_not_found off;
error_log /var/log/nginx/error.log error;
}