Commit Graph

17 Commits

Author SHA1 Message Date
masoodafar-web eef13d1471 fix: remove hardcoded GW_URL from Dockerfile and staging manifest
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 4m15s
GW_URL/GwUrl env vars were baked into the Dockerfile (ENV) and the
staging K8s manifest, overriding appsettings.*.json at runtime.
This meant merging to production still used the staging CMS URL.

Now only ASPNETCORE_ENVIRONMENT is set in the manifest; the correct
GwUrl is read from appsettings.Staging.json or appsettings.Production.json
depending on the environment — as intended.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 01:35:18 +03:30
masoodafar-web 738119cf6d fix: trust staging-ca in container to resolve PartialChain gRPC error
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 3m0s
Add staging-ca.crt to the Dockerfile so the ASP.NET runtime inside the
container trusts the internal staging CA. This fixes server-side gRPC
calls from FrontOffice (Blazor Server) to https://cms.se.kbs1.ir which
were failing with PartialChain because the container CA store did not
include the staging root certificate.

Also adds GW_URL env support alongside GwUrl for parity with BackOffice.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 00:42:36 +03:30
masoodafar-web 28a55246df chore: update gateway URL configuration for staging environment
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 3m25s
- Changed GW_URL and GwUrl in frontoffice-deployment.yaml and Dockerfile to use the internal service URL http://cms-svc:8080 for the staging environment.
- Enhanced ConfigureServices to handle HTTP/1.1 for gRPC when using the internal service URL, ensuring compatibility with Kestrel's requirements.
2026-05-14 00:36:54 +03:30
masoodafar-web ceaf6de226 chore: enhance configuration for gateway URL handling
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 3m43s
- Added GW_URL and GwUrl environment variables in frontoffice-deployment.yaml and Dockerfile for consistent gateway URL configuration.
- Updated AddGrpcServices method to resolve gateway URL from both environment variables, ensuring proper error handling for missing values.
- Modified TokenNotificationService to prioritize GW_URL over GwUrl for improved configuration flexibility.
2026-05-14 00:27:16 +03:30
masoodafar-web cd0fb2fa57 Revert "fix: bypass broken Nexus, use nuget.org + local proto build"
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 1m23s
This reverts commit 4dc7b52289.
2026-03-12 00:06:33 +03:30
masoodafar-web 4dc7b52289 fix: bypass broken Nexus, use nuget.org + local proto build
- NuGet.config: nuget.org for standard packages, local nupkg for proto
- Dockerfile: COPY nupkg/ before restore
- CI: build proto from CMS source before Docker build
2026-03-12 00:04:04 +03:30
masoodafar-web 522d052745 Update deployment configurations and Dockerfile to use internal registry 2026-01-29 02:54:07 +03:30
masoud 3c528aba48 fix: Revert to aspnet runtime - FrontOffice is Blazor Server not WASM
Build and Deploy / build (push) Successful in 1m42s
- Project uses Microsoft.NET.Sdk.Web (Blazor Server)
- Not Microsoft.NET.Sdk.BlazorWebAssembly
- Needs aspnet runtime to run the .dll, not nginx for static files
- Changed back from nginx:alpine to aspnet:9.0
2025-12-07 23:35:09 +00:00
masoud 380b4788dd fix: Remove default nginx files before copying Blazor WASM output
Build and Deploy / build (push) Successful in 1m51s
- nginx:alpine has default index.html that prevents Blazor from loading
- Added RUN rm -rf /usr/share/nginx/html/* before COPY
2025-12-07 23:30:17 +00:00
masoud 0395c74041 fix: Change FrontOffice Dockerfile to nginx runtime for Blazor WASM
Build and Deploy / build (push) Successful in 1m44s
- Changed from aspnet to nginx:alpine
- Copy wwwroot output instead of FrontOffice.dll
- Configure nginx SPA routing (try_files for client-side routing)
- Remove ENTRYPOINT dotnet command
- Fix project name references (FrontOffice.Main.csproj)
2025-12-07 22:48:28 +00:00
admin baf984a942 Update src/FrontOffice.Main/Dockerfile
Build and Deploy / build (push) Failing after 14s
2025-12-07 22:34:16 +00:00
admin 2b07cc2270 Update src/FrontOffice.Main/Dockerfile
Build and Deploy / build (push) Failing after 14s
2025-12-07 22:29:24 +00:00
masoodafar-web b51a4b51cc refactor: migrate from nginx to aspnet runtime
Build and Deploy / build (push) Failing after 13s
2025-12-08 01:55:13 +03:30
masoud 08595e4f95 Revert: Back to nginx for Blazor WASM 2025-12-06 23:11:07 +00:00
masoud abcc079fdd Fix: Revert to aspnet runtime for Blazor Server with gRPC 2025-12-06 23:08:54 +00:00
masoud de5c33196b Fix: Use nginx for Blazor WASM instead of aspnet runtime 2025-12-06 21:24:28 +00:00
masoodafar-web ebae8f3e16 Add Docker deployment configuration and update package references 2025-12-07 00:05:55 +03:30