Files
deploy_home/ansible/roles/podman/templates/nginx/sites/cloud.bdebyl.net.conf.j2
2022-09-28 00:49:14 -04:00

21 lines
364 B
Django/Jinja

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;
}
}