[Bug] Share links use old domain after domain change #7205

Closed
opened 2026-02-05 12:52:10 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @AleksandarKrumov on GitHub (Sep 14, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

After changing my public domain, newly created shareable links still reference the old domain. The service runs TrueNAS behind an Nginx reverse proxy. Even after a full restart the generated share URLs continue to use the previous domain and port, which suggests the base/public URL may be persisted in the database or cached and not updated.

The OS that Immich Server is running on

TrueNas 25.04.2.4

Version of Immich Server

App Version: v2.516.2-jdk17 Version: v1.2.9

Version of Immich Mobile App

1.141.1 build 3013

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Google Pixel 8

Your docker-compose.yml content

n/a on TrueNAS

Your .env content

$ env
REDIS_PORT=6379
NODE_VERSION=22.19.0
IMMICH_BUILD=17558684212
HOSTNAME=7b0ca8bfc851
DB_DATABASE_NAME=immich
USER_ID=568
DB_PORT=5432
YARN_VERSION=1.22.22
IMMICH_MACHINE_LEARNING_ENABLED=true
LD_LIBRARY_PATH=/usr/lib/jellyfin-ffmpeg/lib:/usr/lib/wsl/lib:
IMMICH_REPOSITORY=immich-app/immich
HOME=/
UMASK_SET=002
IMMICH_SOURCE_URL=https://github.com/immich-app/immich/commit/db0ea0f3a84863921ef6683650e75a953cbbf222
REDIS_HOSTNAME=redis
IMMICH_BUILD_IMAGE_URL=https://github.com/immich-app/immich/pkgs/container/immich-server
PGID=568
DB_HOSTNAME=pgvecto
GROUP_ID=568
DB_USERNAME=immich
NVIDIA_DRIVER_CAPABILITIES=all
TERM=xterm
IMMICH_LOG_LEVEL=log
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/src/app/server/bin
GID=568
IMMICH_BUILD_IMAGE=v1.141.1
UID=568
PUID=568
IMMICH_SOURCE_REF=v1.141.1
IMMICH_SOURCE_COMMIT=db0ea0f3a84863921ef6683650e75a953cbbf222
UMASK=002
IMMICH_BUILD_URL=https://github.com/immich-app/immich/actions/runs/17558684212
REDIS_PASSWORD=••••••••••••
REDIS_DBINDEX=0
IMMICH_MACHINE_LEARNING_URL=http://machine-learning:32002
IMMICH_REPOSITORY_URL=https://github.com/immich-app/immich
DB_PASSWORD=*****
PWD=/usr/src/app
NVIDIA_VISIBLE_DEVICES=void
TZ=Europe/Sofia
NODE_ENV=production
IMMICH_PORT=30041

Reproduction steps

  1. Run the app behind Nginx at an initial domain, for example: old-domain.example.org:322.
  2. Change DNS and reverse proxy config to a new domain, for example: new-domain.example.com, and update any environment variables as needed.
  3. Restart the container stack.
  4. Create a new shareable link for any photo or album.
  5. Newly created share links should use the new public domain but its not happening
  6. Share links still contain the old domain (including the old port), even for shares created after the change.

Relevant log output


Additional information

No response

Originally created by @AleksandarKrumov on GitHub (Sep 14, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug After changing my public domain, newly created shareable links still reference the old domain. The service runs TrueNAS behind an Nginx reverse proxy. Even after a full restart the generated share URLs continue to use the previous domain and port, which suggests the base/public URL may be persisted in the database or cached and not updated. ### The OS that Immich Server is running on TrueNas 25.04.2.4 ### Version of Immich Server App Version: v2.516.2-jdk17 Version: v1.2.9 ### Version of Immich Mobile App 1.141.1 build 3013 ### Platform with the issue - [x] Server - [x] Web - [x] Mobile ### Device make and model Google Pixel 8 ### Your docker-compose.yml content ```YAML n/a on TrueNAS ``` ### Your .env content ```Shell $ env REDIS_PORT=6379 NODE_VERSION=22.19.0 IMMICH_BUILD=17558684212 HOSTNAME=7b0ca8bfc851 DB_DATABASE_NAME=immich USER_ID=568 DB_PORT=5432 YARN_VERSION=1.22.22 IMMICH_MACHINE_LEARNING_ENABLED=true LD_LIBRARY_PATH=/usr/lib/jellyfin-ffmpeg/lib:/usr/lib/wsl/lib: IMMICH_REPOSITORY=immich-app/immich HOME=/ UMASK_SET=002 IMMICH_SOURCE_URL=https://github.com/immich-app/immich/commit/db0ea0f3a84863921ef6683650e75a953cbbf222 REDIS_HOSTNAME=redis IMMICH_BUILD_IMAGE_URL=https://github.com/immich-app/immich/pkgs/container/immich-server PGID=568 DB_HOSTNAME=pgvecto GROUP_ID=568 DB_USERNAME=immich NVIDIA_DRIVER_CAPABILITIES=all TERM=xterm IMMICH_LOG_LEVEL=log PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/src/app/server/bin GID=568 IMMICH_BUILD_IMAGE=v1.141.1 UID=568 PUID=568 IMMICH_SOURCE_REF=v1.141.1 IMMICH_SOURCE_COMMIT=db0ea0f3a84863921ef6683650e75a953cbbf222 UMASK=002 IMMICH_BUILD_URL=https://github.com/immich-app/immich/actions/runs/17558684212 REDIS_PASSWORD=•••••••••••• REDIS_DBINDEX=0 IMMICH_MACHINE_LEARNING_URL=http://machine-learning:32002 IMMICH_REPOSITORY_URL=https://github.com/immich-app/immich DB_PASSWORD=***** PWD=/usr/src/app NVIDIA_VISIBLE_DEVICES=void TZ=Europe/Sofia NODE_ENV=production IMMICH_PORT=30041 ``` ### Reproduction steps 1. Run the app behind Nginx at an initial domain, for example: old-domain.example.org:322. 2. Change DNS and reverse proxy config to a new domain, for example: new-domain.example.com, and update any environment variables as needed. 3. Restart the container stack. 4. Create a new shareable link for any photo or album. 5. Newly created share links should use the new public domain but its not happening 6. Share links still contain the old domain (including the old port), even for shares created after the change. ### Relevant log output ```shell ``` ### Additional information _No response_
Author
Owner

@mmomjian commented on GitHub (Sep 14, 2025):

You need to set the domain in the admin settings as the external domain. It doesn’t look like you changed that.

@mmomjian commented on GitHub (Sep 14, 2025): You need to set the domain in the admin settings as the external domain. It doesn’t look like you changed that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7205