Browse Source

add a client allow whitelist

master
Charles Reid 7 years ago
parent
commit
2a5132de1b
  1. 2
      conf.d/client-allow.conf
  2. 3
      conf.d/http.subdomains.conf

2
conf.d/client-allow.conf

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
allow 10.5.0.1;
allow 45.56.87.232;

3
conf.d/http.subdomains.conf

@ -20,6 +20,7 @@ @@ -20,6 +20,7 @@
server {
listen 7777;
server_name pages.charlesreid1.com;
include /etc/nginx/conf.d/client-allow.conf;
location / {
try_files $uri $uri/ =404;
root /www/pages.charlesreid1.com/htdocs;
@ -30,6 +31,7 @@ server { @@ -30,6 +31,7 @@ server {
server {
listen 7778;
server_name hooks.charlesreid1.com;
include /etc/nginx/conf.d/client-allow.conf;
location / {
try_files $uri $uri/ =404;
#root /www/hooks.charlesreid1.com/htdocs;
@ -41,6 +43,7 @@ server { @@ -41,6 +43,7 @@ server {
server {
listen 7779;
server_name bots.charlesreid1.com;
include /etc/nginx/conf.d/client-allow.conf;
location / {
try_files $uri $uri/ =404;
#root /www/bots.charlesreid1.com/htdocs;

Loading…
Cancel
Save