echo"WARNING: You are using the default SERVER_NAME setting. If your docker container is public-facing, this is a security concern."
echo"Please see https://www.openproject.org/docs/installation-and-operations/installation/docker/ for more information how to secure your installation."
fi
# handle legacy configs
if[ -d "$PGDATA_LEGACY"];then
echo"WARN: You are using a legacy volume path for your postgres data. You should mount your postgres volumes at $PGDATA instead of $PGDATA_LEGACY."
Please make sure you set the correct public facing hostname in `SERVER_HOSTNAME`. If you don't have a load-balancing or proxying web server in front of your docker container,
Please make sure you set the correct public facing hostname in `SERVER_NAME`. If you don't have a load-balancing or proxying web server in front of your docker container,
you will otherwise be vulnerable to [HOST header injections](https://portswigger.net/web-security/host-header), as the internal server has no way of identifying the correct host name.
**Note**: Make sure to replace `secret` with a random string. One way to generate one is to run `head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32 ; echo ''` if you are on Linux.