Commit 6c2aa4e
authored
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 review1 parent 74e6153 commit 6c2aa4e
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
283 | 289 | | |
284 | 290 | | |
285 | 291 | | |
| |||
0 commit comments