From 6c2aa4e7ca6715de62bce3a97bb1e486e7d96d09 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Thu, 18 Dec 2025 22:54:47 +0100 Subject: [PATCH] Angular: Change the default Nginx paths to /tmp in Docker Container (#23837) ## 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 --- content/guides/angular/containerize.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/guides/angular/containerize.md b/content/guides/angular/containerize.md index 5068a5ea8e..f8ce7080e0 100644 --- a/content/guides/angular/containerize.md +++ b/content/guides/angular/containerize.md @@ -280,6 +280,12 @@ http { include /etc/nginx/mime.types; default_type application/octet-stream; + client_body_temp_path /tmp/client_temp; + proxy_temp_path /tmp/proxy_temp_path; + fastcgi_temp_path /tmp/fastcgi_temp; + uwsgi_temp_path /tmp/uwsgi_temp; + scgi_temp_path /tmp/scgi_temp; + # Logging access_log off; error_log /dev/stderr warn;