Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: immich port with external domain #9856

Merged
merged 2 commits into from
May 29, 2024
Merged

Conversation

martabal
Copy link
Member

Currently, the fallback for the external domain uses the :2283 port which is the wrong port if you have IMMICH_PORT set.

Copy link

cloudflare-workers-and-pages bot commented May 29, 2024

Deploying immich with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0636a54
Status: ✅  Deploy successful!
Preview URL: https://a54cc8b0.immich.pages.dev
Branch Preview URL: https://fix-immich-port-external-dom.immich.pages.dev

View logs

@@ -24,6 +24,8 @@ export const envName = (process.env.IMMICH_ENV || 'production').toUpperCase();
export const isDev = () => process.env.IMMICH_ENV === 'development';
export const APP_MEDIA_LOCATION = process.env.IMMICH_MEDIA_LOCATION || './upload';
export const WEB_ROOT = process.env.IMMICH_WEB_ROOT || '/usr/src/app/www';
const HOST_SERVER_PORT = process.env.IMMICH_PORT || '2283';
export const FALLBACK_EXTERNAL_DOMAIN = 'http://localhost:' + HOST_SERVER_PORT;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rename this to DEFAULT_EXTERNAL_DOMAIN?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

of course

@jrasm91 jrasm91 merged commit 12cf116 into main May 29, 2024
24 checks passed
@jrasm91 jrasm91 deleted the fix/immich-port-external-domain branch May 29, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants