Immich on two domains simultaneously?

Hello Immich people! I previously had immich installed (beautifully) on my server, but now I am starting again on a new machine. With this one, I have set up my reverse proxy (SWAG, from linuxserver.io, it is basically NGINX) with two domain names. I have a "public" domain and a "family" domain name. I have had success proxying the same service through both of them (IE, being able to access Dillinger from both
dillinger.public.tld
and
dillinger.family.tld
by creating CNAMEs in cloudflare and then using this in the nginx proxy conf:
server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name immich.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

Should this work with Immich? I do not know if the external domain matter a lot, especially when creating shareable links.

Ideally I would then be able to have my family use the family domain, and then I could use the public domain to share pictures with people who don't need my real name (discord people).

Thanks for any guidance!
Was this page helpful?