ui changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user