mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
Make IPv6 configuration for pages consistent with gitlab
This commit is contained in:
parent
07462abcf0
commit
ad3dfbfce8
@ -965,15 +965,22 @@ nginx_configure_gitlab_hsts() {
|
||||
fi
|
||||
}
|
||||
|
||||
nginx_configure_gitlab_ipv6() {
|
||||
if [[ ! -f /proc/net/if_inet6 ]]; then
|
||||
# disable ipv6 support
|
||||
sed -i \
|
||||
-e "/listen \[::\]:80/d" \
|
||||
-e "/listen \[::\]:443/d" \
|
||||
${GITLAB_NGINX_CONFIG}
|
||||
fi
|
||||
}
|
||||
nginx_configure_gitlab_ipv6() {
|
||||
if [[ ! -f /proc/net/if_inet6 ]]; then
|
||||
# disable ipv6 support in nginx for gitlab
|
||||
sed -i \
|
||||
-e "/listen \[::\]:80/d" \
|
||||
-e "/listen \[::\]:443/d" \
|
||||
${GITLAB_NGINX_CONFIG}
|
||||
# disable ipv6 support in nginx for pages
|
||||
if [[ ${GITLAB_PAGES_ENABLED} == true ]]; then
|
||||
sed -i \
|
||||
-e "/listen \[::\]:80/d" \
|
||||
-e "/listen \[::\]:443/d" \
|
||||
${GITLAB_PAGES_NGINX_CONFIG}
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
nginx_configure_gitlab() {
|
||||
echo "Configuring nginx::gitlab..."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user