mirror of
https://github.com/immich-app/immich.git
synced 2024-12-26 10:50:29 +02:00
792a87e407
* fix(nginx): x-forwarded-* headers * change category / add link to nginx config
14 lines
422 B
Bash
14 lines
422 B
Bash
#! /bin/sh
|
|
|
|
# Rebind env vars to PUBLIC_ for svelte
|
|
export PUBLIC_IMMICH_SERVER_URL=$IMMICH_SERVER_URL
|
|
export PUBLIC_IMMICH_API_URL_EXTERNAL=$IMMICH_API_URL_EXTERNAL
|
|
|
|
export PROTOCOL_HEADER=X-Forwarded-Proto
|
|
|
|
if [ "$(id -u)" -eq 0 ] && [ -n "$PUID" ] && [ -n "$PGID" ]; then
|
|
exec setpriv --reuid "$PUID" --regid "$PGID" --clear-groups node /usr/src/app/build/index.js
|
|
else
|
|
exec node /usr/src/app/build/index.js
|
|
fi
|