|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
This is a base Nginx service that terminates TLS, and can be used as a reverse
|
|
|
proxy for arbitrary services by adding new entries in `/root/nginx/conf.d` and
|
|
|
-`sudo systemctl restart nginx`.
|
|
|
+`sudo systemctl reload nginx`.
|
|
|
|
|
|
## Installation
|
|
|
|
|
@@ -41,7 +41,7 @@ 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`)
|
|
|
+2. Restart nginx (`sudo systemctl reload nginx`)
|
|
|
|
|
|
## Configuration files
|
|
|
|
|
@@ -60,4 +60,5 @@ We can see this in the default configuration of nginx:
|
|
|
> 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.
|
|
|
+syntax of the configuration files. Alternatively, you can run `docker exec nginx
|
|
|
+nginx -t` on the instance to ask nginx to check the configuration.
|