#forward the post request to the microservice location /api/icons/ { proxy_pass http://app-icons; } location /icons/ { root /volumes/; default_type image/png; }