mirror of
https://github.com/dokku/dokku.git
synced 2026-02-23 19:50:34 +01:00
Merge pull request #4715 from dokku/2574-use-sslip
Switch from xip.io to sslip.io
This commit is contained in:
@@ -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`.
|
||||
|
||||
@@ -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}\$"
|
||||
}
|
||||
|
||||
|
||||
@@ -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)" {
|
||||
|
||||
Reference in New Issue
Block a user