added photopsirm cloud and other fixes

This commit is contained in:
Bastian de Byl
2022-09-28 00:49:14 -04:00
parent b0ca89c2c6
commit 99a41d2a74
12 changed files with 197 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
geo $whitelisted {
default 0;
192.168.1.0/24 1;
}
server {
modsecurity on;
modsecurity_rules_file /etc/nginx/modsec_includes.conf;
listen 80;
server_name {{ cloud_server_name }};
location '/.well-known/acme-challenge' {
default_type "text/plain";
root /srv/http/letsencrypt;
}
location / {
return 302 https://$host$request_uri;
}
}