ui changes

This commit is contained in:
2026-07-30 13:48:45 +00:00
parent e92ef7fef9
commit a050e2e5f9
14 changed files with 109 additions and 104 deletions
+7 -1
View File
@@ -41,9 +41,15 @@ export class SettingsService {
* reachable from inside the container — use the compose-network URL for it.
*/
blossomServerSideUrl(publicBlossomUrl: string): string {
// Compare against the *current effective* own-instance URL (runtime override, if any,
// else the env default) rather than just the static default — otherwise an admin who
// customizes blossom_url at runtime (e.g. to match a Tailscale IP / alternate hostname)
// permanently loses the internal-network shortcut, since their own bundled instance's
// public URL no longer matches the hardcoded default it's compared against.
const ownPublicUrl = this.get('blossom_url') ?? this.config.BLOSSOM_URL_DEFAULT;
if (
this.config.BLOSSOM_URL_INTERNAL &&
publicBlossomUrl.replace(/\/+$/, '') === this.config.BLOSSOM_URL_DEFAULT.replace(/\/+$/, '')
publicBlossomUrl.replace(/\/+$/, '') === ownPublicUrl.replace(/\/+$/, '')
) {
return this.config.BLOSSOM_URL_INTERNAL;
}