Merge pull request #4715 from dokku/2574-use-sslip

Switch from xip.io to sslip.io
This commit is contained in:
Jose Diaz-Gonzalez
2021-08-06 02:15:53 -04:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

View File

@@ -8,4 +8,4 @@
4. In your browser of choice, navigate to `http://[dnsNameForPublicIP].[location].cloudapp.azure.com`. Where `[dnsNameForPublicIP]` and `[location]` are template parameters you used to deploy the template.
5. Finish your Dokku setup like you normally would by creating a *new* public/private key pair for your deployments using `ssh-keygen` (don't use the same one as you created in the first step). You should select **Use Virtual Host Naming** and set the **Hostname** to a *public DNS name* that you own such as one you would purchase from [Namecheap](http://namecheap.com). Alternatively thanks to [xip.io](http://xip.io/) you can just use `[yourAzurePublicIP].xip.io` for free. For example, if your public IP is `44.44.44.44` then you would set it to `44.44.44.44.xip.io`.
5. Finish your Dokku setup like you normally would by creating a *new* public/private key pair for your deployments using `ssh-keygen` (don't use the same one as you created in the first step). You should select **Use Virtual Host Naming** and set the **Hostname** to a *public DNS name* that you own such as one you would purchase from [Namecheap](http://namecheap.com). Alternatively thanks to [sslip.io](https://sslip.io/) you can just use `[yourAzurePublicIP].sslip.io` for free. For example, if your public IP is `44.44.44.44` then you would set it to `44.44.44.44.sslip.io`.

View File

@@ -833,7 +833,7 @@ get_ipv4_regex() {
declare desc="returns ipv4 regex"
local RE_IPV4="$(_ipv4_regex)"
# Ensure the ip address continues to the end of the line
# Fixes using a wildcard dns service such as xip.io which allows for *.<ip address>.xip.io
# Fixes using a wildcard dns service such as sslip.io which allows for *.<ip address>.sslip.io
echo "${RE_IPV4}\$"
}
@@ -841,7 +841,7 @@ get_ipv6_regex() {
declare desc="returns ipv6 regex"
local RE_IPV6="$(_ipv6_regex)"
# Ensure the ip address continues to the end of the line
# Fixes using a wildcard dns service such as xip.io which allows for *.<ip address>.xip.io
# Fixes using a wildcard dns service such as sslip.io which allows for *.<ip address>.sslip.io
echo "${RE_IPV6}\$"
}

View File

@@ -17,12 +17,12 @@ teardown() {
global_teardown
}
@test "(nginx-vhosts) nginx:build-config (xip.io style hostnames)" {
echo "127.0.0.1.xip.io.dokku.me" > "$DOKKU_ROOT/VHOST"
@test "(nginx-vhosts) nginx:build-config (sslip.io style hostnames)" {
echo "127.0.0.1.sslip.io.dokku.me" > "$DOKKU_ROOT/VHOST"
deploy_app
check_urls http://${TEST_APP}.127.0.0.1.xip.io.dokku.me
assert_http_success http://${TEST_APP}.127.0.0.1.xip.io.dokku.me
check_urls http://${TEST_APP}.127.0.0.1.sslip.io.dokku.me
assert_http_success http://${TEST_APP}.127.0.0.1.sslip.io.dokku.me
}
@test "(nginx-vhosts) nginx:build-config (dockerfile expose)" {