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 {