vector-im-hydrogen-web/docker/dynamic-config.sh
Hugh Nimmo-Smith d27aa137cf Build a docker image using unprivileged nginx
BREAKING CHANGE the exposed port has changed from 80 to 8080
2023-01-20 13:31:14 +00:00

12 lines
284 B
Bash
Executable File

#!/bin/sh
set -eux
if [ -n "${CONFIG_OVERRIDE:-}" ]; then
# Use config override environment variable if set
echo "$CONFIG_OVERRIDE" > /tmp/config.json
else
# Otherwise, use the default config that was bundled in the image
cp /config.json.bundled /tmp/config.json
fi