#forward the post request to the microservice location /api/icons/ { proxy_pass http://app-icons; } location /icons/ { root /volumes/; default_type image/png; add_header Cache-Control "max-age=30"; }