Add documentation comments
This commit is contained in:
parent
27b13765d7
commit
c177efe79c
2 changed files with 23 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue