From b5f1af09c9e0eb937112ba53db0ea6d3c9256d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Tue, 12 Jun 2018 14:24:34 +0200 Subject: [PATCH] Update nginx.conf --- nginx/nginx.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 07f3874..5e064a2 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -62,7 +62,16 @@ http { proxy_set_header X-Real-IP $remote_addr; proxy_http_version 1.1; tcp_nodelay on; - proxy_pass http://api:5000/; + proxy_pass http://quotes-api:5000/; + } + + location ^~ /comments/api/ { + rewrite ^/comments/api(/.*)$ $1 break; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_http_version 1.1; + tcp_nodelay on; + proxy_pass http://comments-api:5000/; } location ~ /\.ht {