0d8194a1d9
Build and Push Docker Image / build-and-push (push) Failing after 16s
Introduced a `PUBLIC_URL` environment variable to configure the public URL for OAuth callbacks and reverse proxy scenarios. Updated `Program.cs` to rewrite request scheme and host based on `PublicUrl`. Replaced `Microsoft.AspNetCore.Components.Authorization` with `Microsoft.AspNetCore.Components.Authentication`. Added `PublicUrl` to `appsettings.json` with a default empty value.
21 lines
589 B
Bash
21 lines
589 B
Bash
# Required for SQL Server container and app DB connection
|
|
SA_PASSWORD=ChangeThisToAStrongPassword123!
|
|
|
|
# Public URL of the site (used to fix OAuth callbacks behind a reverse proxy)
|
|
PUBLIC_URL=https://yourdomain.example.com
|
|
|
|
# Optional OAuth (leave empty to disable provider at runtime)
|
|
GOOGLE_CLIENT_ID=
|
|
GOOGLE_CLIENT_SECRET=
|
|
MICROSOFT_CLIENT_ID=
|
|
MICROSOFT_CLIENT_SECRET=
|
|
|
|
# SMTP (leave username/password/from address empty to disable mail features)
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_ENABLE_SSL=true
|
|
SMTP_USERNAME=
|
|
SMTP_PASSWORD=
|
|
SMTP_FROM_ADDRESS=
|
|
SMTP_FROM_NAME=Birth Registry
|