szurubooru/client/docker-start.sh
2023-06-15 22:08:44 +03:00

13 lines
326 B
Bash
Executable file

#!/usr/bin/dumb-init /bin/sh
# Integrate environment variables
sed -i "s|__BACKEND__|${BACKEND_HOST}|" \
/etc/nginx/nginx.conf
sed -i "s|__BACKEND_PORT__|${BACKEND_PORT}|" \
/etc/nginx/nginx.conf
sed -i "s|__BASEURL__|${BASE_URL:-/}|g" \
/var/www/index.htm \
/var/www/manifest.json
# Start server
exec nginx