mirror of https://github.com/VERT-sh/VERT.git
Add IPv6 configuration to docker-entrypoint.sh
This commit is contained in:
parent
2ad3cbc4f4
commit
788659a561
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -f /proc/net/if_inet6 ] && ip -6 addr show lo >/dev/null 2>&1; then
|
||||
sed -i 's/# IPV6_PLACEHOLDER/listen [::]:80;/' /etc/nginx/conf.d/default.conf
|
||||
else
|
||||
sed -i 's/# IPV6_PLACEHOLDER//' /etc/nginx/conf.d/default.conf
|
||||
fi
|
||||
|
||||
exec /docker-entrypoint.sh "$@"
|
||||
Loading…
Reference in New Issue