refactor: simplify configuration handling for CMS URL
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 3m24s

- Removed CmsServerBaseUrl utility class and updated references to directly access GwUrl from configuration.
- Adjusted frontoffice-deployment.yaml to remove CmsInternalBaseUrl environment variable.
- Updated appsettings for staging and main environments to reflect the correct CMS service URLs.
- Ensured consistent handling of GwUrl in TokenNotificationService and AddGrpcServices methods.
This commit is contained in:
masoodafar-web
2026-05-13 23:52:16 +03:30
parent 3600fc7709
commit 310400b9e7
6 changed files with 5 additions and 28 deletions
@@ -69,7 +69,7 @@ public class TokenNotificationService : IAsyncDisposable
return;
}
var gwUrl = CmsServerBaseUrl.Resolve(_configuration) ?? "https://localhost:5002";
var gwUrl = _configuration["GwUrl"]?.TrimEnd('/') ?? "https://localhost:5002";
var hubPath = _configuration["SignalR:HubPath"] ?? "/hubs/token-relay";
var hubUrl = $"{gwUrl}{hubPath}";