the app files itself under base_url alone: the bound address was the fallback, and a loopback bind is nothing anyone else can reach — filed, it would have overwritten the real address in every switcher; an empty base_url now skips the registration with the one boot-time line it already had
Browse files at this commitdf8c50af9997ffa2cba8120c16f2a294e9007cc7Parent: 922246b1 changed file +10 -4
- crates/in-web/src/main.rs +10 -4
crates/in-web/src/main.rsmodified+10 -4
| @@ -219,10 +219,16 @@ async fn main() { | |||
| 219 | // a fresh deploy shows the trio at boot; an im that does not answer — | 219 | // a fresh deploy shows the trio at boot; an im that does not answer — |
| 220 | // down, restarting, mid-deploy — costs one log line and nothing else: | 220 | // down, restarting, mid-deploy — costs one log line and nothing else: |
| 221 | // the last list filed keeps the switcher alive until the next beat. | 221 | // the last list filed keeps the switcher alive until the next beat. |
| 222 | - // The address the app registers itself under: the same origin the | 222 | + // The address the app registers itself under: `base_url` alone, without |
| 223 | - // logout walk and the share links carry, without the trailing slash im | 223 | + // the trailing slash im keeps its entries free of. The bound address is |
| 224 | - // keeps its entries free of. | 224 | + // no fallback here — a loopback bind is not an address anyone else can |
| 225 | - let public_origin = config.public_origin().trim_end_matches('/').to_string(); | 225 | + // reach, and filing it would overwrite the real one in every switcher. |
| 226 | + let public_origin = config | ||
| 227 | + .base_url | ||
| 228 | + .as_deref() | ||
| 229 | + .unwrap_or("") | ||
| 230 | + .trim_end_matches('/') | ||
| 231 | + .to_string(); | ||
| 226 | tokio::spawn(family_sync( | 232 | tokio::spawn(family_sync( |
| 227 | store.clone(), | 233 | store.clone(), |
| 228 | in_client::InClient::new(oidc.clone()), | 234 | in_client::InClient::new(oidc.clone()), |