From f36493faa8f539affb5f0c69f7c6bf7f5b27f586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Tue, 8 Sep 2026 04:54:43 +0300 Subject: [PATCH] =?UTF-8?q?the=20app=20files=20itself=20under=20the=20stor?= =?UTF-8?q?ed=20public=20address=20or=20base=5Furl=20alone:=20the=20bound?= =?UTF-8?q?=20address=20was=20the=20last=20fallback,=20and=20a=20loopback?= =?UTF-8?q?=20bind=20is=20nothing=20anyone=20else=20can=20reach=20?= =?UTF-8?q?=E2=80=94=20filed,=20it=20would=20have=20overwritten=20the=20re?= =?UTF-8?q?al=20address=20in=20every=20switcher;=20neither=20set=20now=20s?= =?UTF-8?q?kips=20the=20registration=20with=20the=20one=20boot-time=20line?= =?UTF-8?q?=20it=20already=20had?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Claude-Session: https://claude.ai/code/session_01JDMA1TAen2UjGRvUVu96KE --- crates/iz-web/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/iz-web/src/main.rs b/crates/iz-web/src/main.rs index 97b0007..749a445 100644 --- a/crates/iz-web/src/main.rs +++ b/crates/iz-web/src/main.rs @@ -146,10 +146,14 @@ async fn main() { // mailable before their first visit, and the provider's renames and // admin flips follow on their own. Runs beside the sweep, first pass // right away so a fresh deploy sees everyone at boot. + // The address the app files itself under is `base_url` alone: a bound + // address is no fallback here — a loopback bind is nothing anyone else + // can reach, and filing it would overwrite the real one in every + // switcher. tokio::spawn(directory_sync( store.clone(), iz_client::IzClient::new(oidc.clone()), - config.public_url(), + config.base_url.clone(), )); // Told when the process is stopping, so the live streams end instead of // being waited out. See `iz_web::live::Shutdown`.