22 lines
368 B
Django/Jinja
22 lines
368 B
Django/Jinja
geo $whitelisted {
|
|
default 0;
|
|
192.168.0.0/16 1;
|
|
}
|
|
|
|
server {
|
|
modsecurity on;
|
|
modsecurity_rules_file /etc/nginx/modsec_includes.conf;
|
|
|
|
listen 80;
|
|
server_name {{ fulfillr_server_name }};
|
|
|
|
location '/.well-known/acme-challenge' {
|
|
default_type "text/plain";
|
|
root /srv/http/letsencrypt;
|
|
}
|
|
|
|
location / {
|
|
return 302 https://$host$request_uri;
|
|
}
|
|
}
|