server: fixup address, make it available on cluster manager

This commit is contained in:
Koushik Dutta
2025-02-05 12:08:36 -08:00
parent 7c51bb420e
commit df10c4e5f2
11 changed files with 28 additions and 16 deletions

View File

@@ -15,6 +15,10 @@ export class ClusterManagerImpl implements ClusterManager {
return this.clusterWorkerId;
}
getClusterAddress(): string {
return process.env.SCRYPTED_CLUSTER_ADDRESS;
}
getClusterMode(): 'server' | 'client' | undefined {
return this.clusterMode;
}