#forward the post request to the microservice location /api/auth/ { rewrite ^/api/auth/(.*) $1 break; proxy_pass http://auth/$uri; }