Last active
August 28, 2020 04:23
-
-
Save nuxlli/bfe8eaa3a8419702322e to your computer and use it in GitHub Desktop.
Azkfile.js with custom dns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Mac Users: | |
* Add a file /etc/rsolver/my.domain.com | |
* nameserver [ip from dev.azk.io] | |
* port 5353 | |
* | |
* Linux Users: | |
* Add a file /etc/rsolver/my.domain.com | |
* nameserver [ip from dev.azk.io]:5353 | |
* | |
* Debug utils: | |
* dig @dev.azk.io -p 5353 my.domain.com | |
* scutil --dns | |
*/ | |
systems({ | |
dns: { | |
image: { docker: "azukiapp/azktcl:0.0.2" }, | |
shell : '/bin/bash', | |
wait : false, | |
scalable: false, | |
command: "dnsmasq -p $DNS_PORT --no-daemon --address=/$DOMAIN/#{azk.balancer_ip}", | |
ports: { | |
dns: "53:5353/udp", | |
80: disable, | |
}, | |
envs: { | |
DOMAIN: "my.domain.com" | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment