/video signaling proxy and a global public server http path config item

This commit is contained in:
legop3
2026-09-14 19:49:37 -04:00
parent e7d7f2a270
commit 43274e7371
32 changed files with 364 additions and 145 deletions
@@ -59,7 +59,7 @@ function pollIntervalMs() {
}
function ownPublicUrl() {
return normalizeBaseUrl(interInstanceConfig.profile?.publicUrl);
return normalizeBaseUrl(loadConfig().publicUrl);
}
function ownInstanceId() {
@@ -486,6 +486,15 @@ registerConfigurationHandler('interInstance', (nextConfig = {}) => {
startPolling();
});
registerConfigurationHandler('publicUrl', () => {
/*
The canonical URL participates in self-filtering as well as the published
profile. Start a fresh generation immediately so results from an in-flight
poll using the former identity cannot be committed afterward.
*/
startPolling();
});
module.exports = {
getState,
interInstanceEvents,