docs icon indicating copy to clipboard operation
docs copied to clipboard

Angular: Change the default Nginx paths to /tmp in Docker Container

Open melroy89 opened this issue 2 weeks ago • 1 comments

Description

In your Angular + Nginx Docker example you are running a non-root user, but by default Nginx will try to write to directories like /var/cache/nginx/. Which will cause errors like:

mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)

This PR fixes that, and simply changing the default temp path directories (like you did for the pid file as well) to the /tmp directory. Which will work when using the nginx user in Docker. Mainly client_body_temp_path change was needed here, but I would set more just to be sure.

Reviews

  • [x] Technical review
  • [x] Editorial review
  • [ ] Product review

melroy89 avatar Dec 12 '25 21:12 melroy89

Deploy Preview for docsdocker ready!

Name Link
Latest commit 2423247fcf373f6aa4ed31ba0cf89a338b7c1b25
Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/693c8a4cb8c13d0008d9b56d
Deploy Preview https://deploy-preview-23837--docsdocker.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Dec 12 '25 21:12 netlify[bot]