Skip to content

Conversation

@melroy89
Copy link

@melroy89 melroy89 commented Dec 12, 2025

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

  • Technical review
  • Editorial review
  • Product review

@netlify
Copy link

netlify bot commented Dec 12, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 2423247
🔍 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.

@melroy89 melroy89 changed the title Change the default paths to /tmp in Docker Container Angular: Change the default paths to /tmp in Docker Container Dec 13, 2025
@melroy89 melroy89 changed the title Angular: Change the default paths to /tmp in Docker Container Angular: Change the default Nginx paths to /tmp in Docker Container Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant