Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add documentation comments

Manav Rathic177efe79cb6
diff --git a/infra/services/nginx/README.md b/infra/services/nginx/README.md
index 2cf335f212..6d46b4de18 100644
--- a/infra/services/nginx/README.md
+++ b/infra/services/nginx/README.md
@@ -38,3 +38,22 @@ When adding new services that sit behind Nginx,
1. Add its nginx conf file to `/root/nginx/conf.d`
2. Restart nginx (`sudo systemctl restart nginx`)
+
+## Configuration files
+
+All the files we put into `/root/nginx/conf.d` get included in an `http` block.
+We can see this in the default configuration of nginx:
+
+ http {
+ ...
+ include /etc/nginx/conf.d/*.conf;
+ }
+
+> To view the default configuration, run the following command against the
+> [official Docker image for Nginx](https://hub.docker.com/_/nginx), which is
+> also what we use:
+>
+> docker run --rm --entrypoint=cat nginx /etc/nginx/nginx.conf > /tmp/nginx.conf
+
+This is a [handy tool](https://nginx-playground.wizardzines.com) to check the
+syntax of the configuration files.
diff --git a/server/scripts/deploy/museum.nginx.conf b/server/scripts/deploy/museum.nginx.conf
index 3213122a76..65ed19b49e 100644
--- a/server/scripts/deploy/museum.nginx.conf
+++ b/server/scripts/deploy/museum.nginx.conf
@@ -1,4 +1,8 @@
+# This file gets loaded in a top level http block by the default nginx.conf
+# See infra/services/nginx/README.md for more details.
+
upstream museum {
+ # https://nginx.org/en/docs/http/ngx_http_upstream_module.html
server host.docker.internal:8080 max_conns=50;
}