mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Don't listen on port 443 if TLS is not enabled when launching the container. Fixes #2998
This commit is contained in:
parent
405de59298
commit
8b3aecd137
@ -12,6 +12,16 @@
|
|||||||
export PGADMIN_SETUP_EMAIL=${PGADMIN_DEFAULT_EMAIL}
|
export PGADMIN_SETUP_EMAIL=${PGADMIN_DEFAULT_EMAIL}
|
||||||
export PGADMIN_SETUP_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
|
export PGADMIN_SETUP_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
|
||||||
|
|
||||||
|
if [ ${PGADMIN_ENABLE_TLS} != "True" ]; then
|
||||||
|
if [ -f /etc/httpd/conf.d/ssl.conf ]; then
|
||||||
|
mv /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf.disabled
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ -f /etc/httpd/conf.d/ssl.conf.disabled ]; then
|
||||||
|
mv /etc/httpd/conf.d/ssl.conf.disabled /etc/httpd/conf.d/ssl.conf
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
j2 /templates/pgadmin4.conf.j2 > /etc/httpd/conf.d/pgadmin4.conf
|
j2 /templates/pgadmin4.conf.j2 > /etc/httpd/conf.d/pgadmin4.conf
|
||||||
|
|
||||||
rm -f /run/httpd/httpd.pid
|
rm -f /run/httpd/httpd.pid
|
||||||
|
Loading…
Reference in New Issue
Block a user