...
 
Commits (2)
......@@ -26,9 +26,15 @@ function proxy_url (url)
return "/.portier/proxy/" .. scheme .. "/" .. rest
end
broker = assert(os.getenv("PORTIER_BROKER"))
broker = os.getenv("PORTIER_BROKER")
if not broker then
broker = "https://broker.portier.io"
end
nameservers_str = assert(os.getenv("PORTIER_NAMESERVERS"))
nameservers_str = os.getenv("PORTIER_NAMESERVERS")
if not nameservers_str then
nameservers_str = "1.1.1.1 1.0.0.1"
end
nameservers = {}
for nameserver in nameservers_str:gmatch("%S+") do
table.insert(nameservers, nameserver)
......
......@@ -52,7 +52,7 @@ server {
location ~ ^/.portier/proxy/(?<proxy_scheme>[^/]+)/(?<proxy_host>[^/]+)(?<proxy_url>.*)$ {
internal;
resolver 8.8.8.8 8.8.4.4;
resolver 1.1.1.1 1.0.0.1;
proxy_http_version 1.0;
proxy_set_header User-Agent "";
......
PORTIER_BROKER=https://broker.portier.io
PORTIER_NAMESERVERS="8.8.8.8 8.8.4.4"
PORTIER_NAMESERVERS="1.1.1.1 1.0.0.1"
#PORTIER_AUTHORIZE=examples/authz.lua
#PORTIER_AUTHORIZE=examples/authz-ldap.lua