1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-23 02:06:15 +02:00
immich/nginx/start.sh

10 lines
291 B
Bash
Raw Normal View History

#! /bin/bash
set -e
export IMMICH_WEB_URL=${IMMICH_WEB_URL:-http://immich-web:3000}
export IMMICH_SERVER_URL=${IMMICH_SERVER_URL:-http://immich-server:3001}
envsubst '$IMMICH_WEB_URL $IMMICH_SERVER_URL' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
exec nginx -g 'daemon off;'