HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/nginx/docker-entrypoint
#!/usr/bin/env bash
set -e

# Overwrite a few variables, this allows us to use the same template
# for development, staging and production.
CONFIG_PATH="/etc/nginx/conf.d/default.conf"
# STAGING_IP="172.17.8.101"
# STAGING_HOSTNAME="core-01"
# DOMAIN_NAME="yourrealdomain.com"

# if [[ $(hostname) != "${STAGING_HOSTNAME}" ]]; then
# sed -i "s/${STAGING_IP}/${DOMAIN_NAME}/g" "${CONFIG_PATH}"
# fi

# Execute the CMD from the Dockerfile.
exec "$@"