fixed subnets, drone proto & host, cleaned up vault
This commit is contained in:
@@ -2,7 +2,7 @@ upstream hass {
|
||||
server 127.0.0.1:8123;
|
||||
}
|
||||
server {
|
||||
resolver 192.168.1.12 ipv6=off;
|
||||
resolver 192.168.2.10 ipv6=off;
|
||||
modsecurity on;
|
||||
modsecurity_rules_file /etc/nginx/modsec_includes.conf;
|
||||
|
||||
@@ -10,7 +10,7 @@ server {
|
||||
server_name {{ assistant_server_name }};
|
||||
|
||||
location / {
|
||||
allow 192.168.1.0/24;
|
||||
allow 192.168.0.0/16;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ upstream drone {
|
||||
|
||||
geo $local_access {
|
||||
default 0;
|
||||
192.168.1.1 1;
|
||||
192.168.2.1 1;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
geo $whitelisted {
|
||||
default 0;
|
||||
192.168.1.0/24 1;
|
||||
192.168.0.0/16 1;
|
||||
}
|
||||
|
||||
server {
|
||||
@@ -16,4 +16,4 @@ server {
|
||||
if ($whitelisted = 0) {
|
||||
return 302 $scheme://bdebyl.net$request_uri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ upstream graylog {
|
||||
|
||||
geo $local_access {
|
||||
default 0;
|
||||
192.168.1.0/24 1;
|
||||
192.168.0.0/16 1;
|
||||
}
|
||||
|
||||
server {
|
||||
@@ -18,7 +18,7 @@ server {
|
||||
if ($local_access = 1) {
|
||||
access_log off;
|
||||
}
|
||||
allow 192.168.1.0/24;
|
||||
allow 192.168.0.0/16;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
|
||||
@@ -29,4 +29,4 @@ server {
|
||||
proxy_buffering off;
|
||||
proxy_pass http://graylog;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
geo $whitelisted {
|
||||
default 0;
|
||||
192.168.1.0/24 1;
|
||||
192.168.0.0/16 1;
|
||||
}
|
||||
|
||||
server {
|
||||
@@ -18,4 +18,4 @@ server {
|
||||
location / {
|
||||
return 302 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
geo $whitelisted {
|
||||
default 0;
|
||||
192.168.1.0/24 1;
|
||||
192.168.0.0/16 1;
|
||||
}
|
||||
|
||||
upstream partkeepr {
|
||||
@@ -54,4 +54,4 @@ server {
|
||||
|
||||
chunked_transfer_encoding off;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ upstream pihole {
|
||||
|
||||
geo $local_access {
|
||||
default 0;
|
||||
192.168.1.0/24 1;
|
||||
192.168.0.0/16 1;
|
||||
}
|
||||
|
||||
server {
|
||||
@@ -18,7 +18,7 @@ server {
|
||||
if ($local_access = 1) {
|
||||
access_log off;
|
||||
}
|
||||
allow 192.168.1.0/24;
|
||||
allow 192.168.0.0/16;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
|
||||
@@ -29,4 +29,4 @@ server {
|
||||
proxy_buffering off;
|
||||
proxy_pass http://pihole;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ server {
|
||||
server_name {{ video_server_name }};
|
||||
|
||||
location / {
|
||||
allow 192.168.1.0/24;
|
||||
allow 192.168.0.0/16;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
|
||||
@@ -21,4 +21,4 @@ server {
|
||||
proxy_buffering off;
|
||||
proxy_pass http://shinobi;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user