moved fulfillr w/ddns to https
This commit is contained in:
@@ -1,24 +1,21 @@
|
||||
upstream fulfillr {
|
||||
server 127.0.0.1:9054;
|
||||
geo $whitelisted {
|
||||
default 0;
|
||||
192.168.0.0/16 1;
|
||||
}
|
||||
|
||||
server {
|
||||
resolver 192.168.1.10 ipv6=off;
|
||||
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 / {
|
||||
allow 192.168.0.0/16;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_pass http://fulfillr;
|
||||
return 302 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user