added partkeepr, motion, and relevant secrets

This commit is contained in:
Bastian de Byl
2021-11-28 16:38:52 -05:00
parent 35c845106f
commit cc834df161
16 changed files with 167 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
geo $whitelisted {
default 0;
192.168.1.1/24 1;
192.168.1.0/24 1;
}
server {

View File

@@ -0,0 +1,22 @@
geo $whitelisted {
default 0;
192.168.1.0/24 1;
}
upstream partkeepr {
server localhost:8081;
}
server {
listen 80;
server_name {{ parts_server_name }};
if ($whitelisted = 0) {
return 302 $scheme://bdebyl.net$request_uri;
}
location / {
proxy_pass http://partkeepr;
proxy_connect_timeout 1s;
}
}