ansible-ffibk/roles/service-nginx-firmware/templates/opkg_vhost.conf.j2

21 lines
363 B
Text
Raw Normal View History

server {
listen 80;
listen [::]:80;
server_name opkg.{{ http_domain_internal }};
allow 127.0.0.0/8;
allow ::1;
{% for prefix in internal_prefixes %}
allow {{ prefix.ipv4 }};
allow {{ prefix.ipv6 }};
{% endfor%}
deny all;
location / {
proxy_pass https://downloads.openwrt.org/;
proxy_connect_timeout 6s;
}
}