the app files itself under the stored public address or base_url alone: the bound address was the last fallback, and a loopback bind is nothing anyone else can reach — filed, it would have overwritten the real address in every switcher; neither set now skips the registration with the one boot-time line it already had
Browse files at this commitf36493faa8f539affb5f0c69f7c6bf7f5b27f586Parent: 87d91bc1 changed file +5 -1
crates/iz-web/src/main.rsmodified+5 -1
| @@ -146,10 +146,14 @@ async fn main() { | ||
| 146 | 146 | // mailable before their first visit, and the provider's renames and |
| 147 | 147 | // admin flips follow on their own. Runs beside the sweep, first pass |
| 148 | 148 | // right away so a fresh deploy sees everyone at boot. |
| 149 | + // The address the app files itself under is `base_url` alone: a bound | |
| 150 | + // address is no fallback here — a loopback bind is nothing anyone else | |
| 151 | + // can reach, and filing it would overwrite the real one in every | |
| 152 | + // switcher. | |
| 149 | 153 | tokio::spawn(directory_sync( |
| 150 | 154 | store.clone(), |
| 151 | 155 | iz_client::IzClient::new(oidc.clone()), |
| 152 | - config.public_url(), | |
| 156 | + config.base_url.clone(), | |
| 153 | 157 | )); |
| 154 | 158 | // Told when the process is stopping, so the live streams end instead of |
| 155 | 159 | // being waited out. See `iz_web::live::Shutdown`. |