mirror of
https://github.com/maxkratz/coredns-dyndns.git
synced 2024-05-18 04:00:47 +00:00
24 lines
488 B
Plaintext
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;
|
|
}
|
|
}
|