coredns-dyndns/config/dynamic/default.conf

24 lines
488 B
Plaintext

#
# Upstream definition for the webhook service.
#
upstream webhook {
server webhook:9000;
}
server {
listen 80;
server_name localhost;
location /nic/le {
auth_basic "Restricted API";
auth_basic_user_file /etc/nginx/conf.d/htpasswd_le;
proxy_pass http://webhook/hooks/le;
}
location /nic {
auth_basic "Restricted API";
auth_basic_user_file /etc/nginx/conf.d/htpasswd;
proxy_pass http://webhook/hooks;
}
}