fix(deploy): add App__BaseUrl env var for activation URLs
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:
parent
f00af02c48
commit
823ad242d2
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue