From 5e02a2accdb948ea111106b73f0d779443e99b45 Mon Sep 17 00:00:00 2001 From: RickX56 <95145628+RickX56@users.noreply.github.com> Date: Sat, 27 Nov 2021 19:19:42 +0000 Subject: [PATCH 1/4] Update nginx.md Add section before section 7 with "Edit /etc/nginx/nginx.conf to contain the following in the http section: gzip on; gzip_min_length 1000; gzip_proxied expired no-cache no-store private auth; gzip_types text/plain application/xml application/json application/javascript application/octet-stream text/css; include /etc/nginx/conf.d/*.conf; " This modification makes the Web Interface working with NGINX. (This is my first contribution to GitHub, so I hope the formatting is okay). --- docs/guides/webserver/nginx.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/guides/webserver/nginx.md b/docs/guides/webserver/nginx.md index d994d20e6..a7e68ed72 100644 --- a/docs/guides/webserver/nginx.md +++ b/docs/guides/webserver/nginx.md @@ -82,7 +82,16 @@ } ``` -7. Create a username for authentication for the admin - we don't want other people in our network change our black and whitelist ;) +7. Edit /etc/nginx/nginx.conf to contain the following in the http section: + ```bash + gzip on; + gzip_min_length 1000; + gzip_proxied expired no-cache no-store private auth; + gzip_types text/plain application/xml application/json application/javascript application/octet-stream text/css; + include /etc/nginx/conf.d/*.conf; + ``` + +9. Create a username for authentication for the admin - we don't want other people in our network change our black and whitelist ;) ```bash htpasswd -c /etc/nginx/.htpasswd exampleuser From 79dde602ea2507df65a4dda6d663aa683ef9908b Mon Sep 17 00:00:00 2001 From: RickX56 <95145628+RickX56@users.noreply.github.com> Date: Wed, 15 Dec 2021 09:46:24 +0000 Subject: [PATCH 2/4] Update nginx.md Updated to correct numbering --- docs/guides/webserver/nginx.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/webserver/nginx.md b/docs/guides/webserver/nginx.md index a7e68ed72..5edd89818 100644 --- a/docs/guides/webserver/nginx.md +++ b/docs/guides/webserver/nginx.md @@ -91,13 +91,13 @@ include /etc/nginx/conf.d/*.conf; ``` -9. Create a username for authentication for the admin - we don't want other people in our network change our black and whitelist ;) +8. Create a username for authentication for the admin - we don't want other people in our network change our black and whitelist ;) ```bash htpasswd -c /etc/nginx/.htpasswd exampleuser ``` -8. Change ownership of the html directory to nginx user +9. Change ownership of the html directory to nginx user ```bash chown -R www-data:www-data /var/www/html From 4313b0fdd9a6754d99ba80cafa63ece90e8a0690 Mon Sep 17 00:00:00 2001 From: RickX56 <95145628+RickX56@users.noreply.github.com> Date: Wed, 15 Dec 2021 21:29:42 +0000 Subject: [PATCH 3/4] Update nginx.md --- docs/guides/webserver/nginx.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guides/webserver/nginx.md b/docs/guides/webserver/nginx.md index 5edd89818..0f2f8818b 100644 --- a/docs/guides/webserver/nginx.md +++ b/docs/guides/webserver/nginx.md @@ -82,7 +82,7 @@ } ``` -7. Edit /etc/nginx/nginx.conf to contain the following in the http section: +7. Edit `/etc/nginx/nginx.conf` to contain the following in the http section: ```bash gzip on; gzip_min_length 1000; @@ -103,25 +103,25 @@ chown -R www-data:www-data /var/www/html ``` -9. Make sure the html directory is writable +10. Make sure the html directory is writable ```bash chmod -R 755 /var/www/html ``` -10. Grant the admin panel access to the gravity database +11. Grant the admin panel access to the gravity database ```bash usermod -aG pihole www-data ``` -11. Start php7.3-fpm daemon +12. Start php7.3-fpm daemon ```bash service php7.3-fpm start ``` -12. Start nginx web server +13. Start nginx web server ```bash service nginx start From 7b0ae62d5f2cda6011416c2316f1f3b9d1d62293 Mon Sep 17 00:00:00 2001 From: RickX56 <95145628+RickX56@users.noreply.github.com> Date: Wed, 15 Dec 2021 21:33:03 +0000 Subject: [PATCH 4/4] Update nginx.md --- docs/guides/webserver/nginx.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/guides/webserver/nginx.md b/docs/guides/webserver/nginx.md index 0f2f8818b..30a2634a7 100644 --- a/docs/guides/webserver/nginx.md +++ b/docs/guides/webserver/nginx.md @@ -83,6 +83,7 @@ ``` 7. Edit `/etc/nginx/nginx.conf` to contain the following in the http section: + ```bash gzip on; gzip_min_length 1000;