fix(deploy): add App__BaseUrl env var for activation URLs
CI/CD Pipeline / deploy (push) Successful in 1m27s Details
CI/CD Pipeline / smoke-tests (push) Failing after 39s Details
CI/CD Pipeline / e2e-tests (push) Has been skipped Details
CI/CD Pipeline / rollback (push) Has been skipped Details

The activation URL was incorrectly pointing to localhost:4200 in production
because App:BaseUrl configuration was missing. Added the environment variable
to both K3s and Docker Compose deployments.

Fixes: Activation URL shows http://localhost:4200 instead of production domain

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Andrés Eduardo García Márquez 2026-01-09 13:35:36 -05:00
parent f00af02c48
commit 823ad242d2
2 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ services:
- ConnectionStrings__DefaultConnection=Server=db;Database=${DB_NAME:-StudentEnrollment};User Id=${DB_USER:-sa};Password=${DB_PASSWORD};TrustServerCertificate=True;Max Pool Size=50;Min Pool Size=2 - ConnectionStrings__DefaultConnection=Server=db;Database=${DB_NAME:-StudentEnrollment};User Id=${DB_USER:-sa};Password=${DB_PASSWORD};TrustServerCertificate=True;Max Pool Size=50;Min Pool Size=2
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development} - ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development}
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:8080,http://localhost:4200} - CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:8080,http://localhost:4200}
- App__BaseUrl=${APP_BASE_URL:-http://localhost:8080}
- DOTNET_gcServer=0 - DOTNET_gcServer=0
- DOTNET_GCHeapCount=2 - DOTNET_GCHeapCount=2
- DOTNET_gcConcurrent=1 - DOTNET_gcConcurrent=1

View File

@ -51,6 +51,8 @@ spec:
value: "9" value: "9"
- name: CORS_ORIGINS - name: CORS_ORIGINS
value: "https://academia.ingeniumcodex.com" value: "https://academia.ingeniumcodex.com"
- name: App__BaseUrl
value: "https://academia.ingeniumcodex.com"
resources: resources:
requests: requests:
memory: "128Mi" memory: "128Mi"