2023-08-17 05:50:01 +02:00
|
|
|
#!/usr/bin/env sh
|
2022-11-09 13:11:32 +02:00
|
|
|
set -e
|
|
|
|
|
2023-01-10 18:04:35 +02:00
|
|
|
export IMMICH_WEB_URL="${IMMICH_WEB_URL:-http://immich-web:3000}"
|
2022-12-30 04:09:38 +02:00
|
|
|
IMMICH_WEB_SCHEME=$(echo "$IMMICH_WEB_URL" | grep -Eo '^https?://' || echo "http://")
|
|
|
|
export IMMICH_WEB_SCHEME
|
|
|
|
IMMICH_WEB_HOST=$(echo "$IMMICH_WEB_URL" | cut -d '/' -f 3)
|
|
|
|
export IMMICH_WEB_HOST
|
2023-01-10 18:04:35 +02:00
|
|
|
export IMMICH_SERVER_URL="${IMMICH_SERVER_URL:-http://immich-server:3001}"
|
2022-12-30 04:09:38 +02:00
|
|
|
IMMICH_SERVER_SCHEME=$(echo "$IMMICH_WEB_URL" | grep -Eo '^https?://' || echo "http://")
|
|
|
|
export IMMICH_SERVER_SCHEME
|
|
|
|
IMMICH_SERVER_HOST=$(echo "$IMMICH_SERVER_URL" | cut -d '/' -f 3)
|
|
|
|
export IMMICH_SERVER_HOST
|