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.
Deployment templates
Gitea build pipeline
- Workflow file:
.gitea/workflows/build-and-push.yml - Pushes Docker image tags to:
git.arnemoerman.be/arne/birthlistlatest- datetime tag (
yyyyMMddHHmm)
Portainer stack
- Stack file:
deploy/portainer-stack.yml - Env template:
deploy/portainer-stack.env.example
Notes
- Set
PAT_TOKENsecret in Gitea for registry login. - Ensure external Docker network
caddy-netexists. - OAuth/SMTP env values can stay empty for MVP; related features will be disabled.