mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
16 lines
323 B
Bash
16 lines
323 B
Bash
#!/usr/bin/env sh
|
|
|
|
if [ -z "$S3_HOST" ] ; then
|
|
S3_HOST='minio1'
|
|
fi
|
|
|
|
if [ -z "$S3_PORT" ] ; then
|
|
S3_PORT='9001'
|
|
fi
|
|
|
|
# Replace config placeholders with environment variables
|
|
sed -i "s|\${S3_HOST}|${S3_HOST}|" /etc/nginx/nginx.conf
|
|
sed -i "s|\${S3_PORT}|${S3_PORT}|" /etc/nginx/nginx.conf
|
|
|
|
exec nginx -g 'daemon off;'
|