Skip to content

Commit

Permalink
#256 Fix issue IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
evertramos committed Mar 19, 2021
1 parent bbe1f1c commit 7665c1d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ NGINX_PROXY_COMPANION_IMAGE_VERSION=2.0
# work properly, '0.0.0.0' will work, but we recommend to update this variable
#
IPv4=0.0.0.0
IPv6=::
IPv6=::0

#-----------------------------------------------------------------------
#
Expand Down
4 changes: 2 additions & 2 deletions bin/.env
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ REPLACE_LETSENCRYPT_SERVICE_NAME="nginx-proxy-automation-letsencrypt"
#
# md5 checksum for .env and docker-compose.yml files
#
MD5_SUM_DOCKER_COMPOSE=173dd5fe8088f758fa6062ad8c1faca9
MD5_SUM_ENV_SAMPLE=2b4d9183529cbf88974e19d9fd7ab803
MD5_SUM_DOCKER_COMPOSE=2af4ea13a3a122898309cb154f64229c
MD5_SUM_ENV_SAMPLE=b299b584d68c1a6f7ac1b1a753a7517d
10 changes: 5 additions & 5 deletions bin/fresh-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ if [[ ! "$IP_IPV4" == true ]]; then
echoerr "The IP address '$LOCAL_IP_ADDRESS' seems to be in wrong format. Please try again or keep the default value."
local_undo_restore
else
IP_ADDRESS=${LOCAL_IP_ADDRESS:-"::1"}
IP_ADDRESS=${LOCAL_IP_ADDRESS:-"0.0.0.0"}
fi

#-----------------------------------------------------------------------
Expand All @@ -964,11 +964,11 @@ if [[ "$ACTIVATE_IPV6" == true ]]; then
# Get user's response
run_function common_read_user_input \
"Please enter the IP address (ipv6) that your server uses to connect to the internet. \
\nYou might try the following '$IP_EXTERNAL_IPV6' (default: ::1):"
\nYou might try the following '$IP_EXTERNAL_IPV6' (default: ::0):"

LOCAL_IPv6_ADDRESS=${USER_INPUT_RESPONSE:-"::1"}
LOCAL_IPv6_ADDRESS=${USER_INPUT_RESPONSE:-"::0"}
else
LOCAL_IPv6_ADDRESS=${ARG_IPv6_ADDRESS:-"::1"}
LOCAL_IPv6_ADDRESS=${ARG_IPv6_ADDRESS:-"::0"}
fi

# Check the IP address
Expand All @@ -978,7 +978,7 @@ if [[ "$ACTIVATE_IPV6" == true ]]; then
echoerr "The IP address '$LOCAL_IPv6_ADDRESS' seems to be in wrong format. Please try again or keep the default value."
local_undo_restore
else
IPv6_ADDRESS=${LOCAL_IPv6_ADDRESS:-"::1"}
IPv6_ADDRESS=${LOCAL_IPv6_ADDRESS:-"::0"}
fi
fi

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ services:
ports:
- "${IPv4:-0.0.0.0}:${DOCKER_HTTP_:-80}:80"
- "${IPv4:-0.0.0.0}:${DOCKER_HTTPS:-443}:443"
# - "${IPv6:-::/0}:${DOCKER_HTTP_:-80}:80"
# - "${IPv6:-::/0}:${DOCKER_HTTPS:-443}:443"
# - "${IPv6:-::0}:${DOCKER_HTTP_:-80}:80"
# - "${IPv6:-::0}:${DOCKER_HTTPS:-443}:443"
environment:
SSL_POLICY: ${SSL_POLICY:-Mozilla-Intermediate}
volumes:
Expand Down

3 comments on commit 7665c1d

@pathros
Copy link
Contributor

@pathros pathros commented on 7665c1d Mar 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do I apply these new changes?
Do I make "git pull"?

And then how do I restart the Nginx proxy containers?

@NanoCode012
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pathros , a new guide has been written by the owner. You can find it in this Issue #260

@evertramos
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NanoCode012 thanks for you reply on this!

@pathros I miss that... sorry. If you are already in the v0.5.beta version, you can run git pull and re-run fresh-start.sh with the option --activate-ipv6, but, you must make sure you are using a new network name or delete the previous one, ok?

Let me know if you make it through.

Please sign in to comment.