You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/nginxaas-google/getting-started/nginx-configuration/overview.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,16 +24,25 @@ The topics below provide information on NGINX configuration restrictions and dir
24
24
25
25
## NGINX filesystem restrictions
26
26
27
-
NGINXaaS for Google Cloud places restrictions on the instance's filesystem; only a specific set of directories are allowed to be read from and written to. Below is a table describing what directories the NGINX worker process can read and write to and what directories files can be written to. These files include certificate files and any files uploaded to the deployment, excluding NGINX configuration files.
Attempts to access other directories will be denied and result in a `5xx` error.
27
+
There are limits to where files, including NGINX configuration files, certificate files, and any other files uploaded to the deployment, can be placed on the filesystem. There are also limits on what directories NGINX can access during runtime. These limits help support the separation of roles, enforce the principal of least privilege, and ensure the smooth operation of the system.
28
+
29
+
{{<tablevariant="narrow"theme="bordered">}}
30
+
| Allowed Directory | User can upload files to | NGINX master process can read | NGINX master process can write | NGINX worker process can read | NGINX worker process can write |
For example, `/etc/nginx` is only readable by the NGINX master process, making it a secure location for certificate files that won't be accidentally served due to configuration errors. `/var/www` is a secure location for static content because the NGINX worker process can serve files from it but cannot modify them, ensuring content integrity. `/tmp` is a good choice for storing temporary files with `proxy_temp_path` or `client_body_temp_path` since it is writable by the NGINX worker process.
44
+
45
+
If you need access to additional directories, please [contact us]({{< ref "/nginxaas-google/get-help.md" >}}).
37
46
38
47
## Disallowed configuration directives
39
48
Some directives are not supported because of specific limitations. If you include one of these directives in your NGINX configuration, you'll get an error.
0 commit comments