- Core: opt-in ForwardedHeaders:KnownProxies en rate limiters per clientadres (zonder configuratie ongewijzigd gedrag) - Identity: optioneel setup-token (X-Setup-Token), beide setup-endpoints onder de login-limiter, beveiligingsgebeurtenis setup_token_rejected (5007) - Nieuw client-project SlpModularCms.Api.AndreaSlopFotografie (Identity + Availability) met bijbehorende tests - Frontend: thema asf (VITE_THEME), VITE_DEFAULT_LANGUAGE, tokenveld op de setup-pagina - CI: jobs publish/deploy-asf-test achter ASF_TEST_DEPLOY_ENABLED - Fix U1: 301-Location wordt nu percent-encoded (gevonden door de property-test) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
57 lines
2.9 KiB
Bash
57 lines
2.9 KiB
Bash
# Base URL of the SlpModularCms .NET API.
|
|
#
|
|
# Leave this empty (or unset) for the production default: the SPA and the API are served by the
|
|
# same process, so an empty value means same-origin — requests use relative paths and no CORS
|
|
# configuration is needed at all. An explicit absolute URL is still honoured and required for local
|
|
# development, where the frontend dev server and the backend run on different ports:
|
|
# The backend must be running with CORS configured to allow this origin
|
|
# and to send the httpOnly refresh-token cookie (credentials: include).
|
|
# Set CookieSameSite=None in appsettings.Development.json so the cookie
|
|
# is sent cross-origin when the frontend and backend run on different ports.
|
|
VITE_API_BASE_URL=https://localhost:7221
|
|
|
|
# Browser tab title. Defaults to "SlpModularCms" if unset — override so the
|
|
# tab is instantly recognizable when running multiple instances side by side
|
|
# (e.g. local master vs. slave, see below).
|
|
VITE_APP_TITLE=SlpModularCms
|
|
|
|
# --- Observability (all optional — absent is a supported state, not an error) ---
|
|
|
|
# Sentry DSN for the admin SPA. Absent or empty skips Sentry initialisation entirely; only console
|
|
# logging remains active. Not sensitive — safe to expose in the client bundle.
|
|
VITE_SENTRY_DSN=
|
|
|
|
# Environment tag attached to Sentry events (e.g. "test", "production"). Set per-environment by the
|
|
# CI pipeline (see .gitea/workflows/continuous_integration.yaml) — leave empty for local development.
|
|
VITE_APP_ENV=
|
|
|
|
# Umami analytics script host and this environment's website ID. Both absent means the Umami
|
|
# component renders nothing — leave unset for local development.
|
|
VITE_UMAMI_SCRIPT_URL=
|
|
VITE_UMAMI_WEBSITE_ID=
|
|
|
|
# --- Local master/slave dev setup ---
|
|
# To point the frontend at the slave instance (SlpModularCms.Api.Slave,
|
|
# see root README.md "Lokaal Master + Slave Draaien (Dev)") instead of the
|
|
# master, copy this file to `.env.slave.local` with:
|
|
# VITE_API_BASE_URL=https://localhost:7222
|
|
# VITE_APP_TITLE=SlpModularCms (Slave)
|
|
# and run `pnpm dev:slave` (uses --mode slave, port 5174) instead of `pnpm dev`.
|
|
|
|
# --- Local SlpModularCms.Api.SlpSoftware dev setup ---
|
|
# To point the frontend at the SlpSoftware client instance (SlpModularCms.Api.SlpSoftware,
|
|
# see root README.md "Projectstructuur") instead of the master, copy this file to
|
|
# `.env.slpsoftware.local` with:
|
|
# VITE_API_BASE_URL=https://localhost:7223
|
|
# VITE_APP_TITLE=SlpModularCms (SlpSoftware)
|
|
# and run `pnpm dev:slpsoftware` (uses --mode slpsoftware, port 5175) instead of `pnpm dev`.
|
|
|
|
# --- Local SlpModularCms.Api.AndreaSlopFotografie dev setup (themed admin) ---
|
|
# Copy this file to `.env.asf.local` with:
|
|
# VITE_API_BASE_URL=https://localhost:7200
|
|
# VITE_APP_TITLE=Andrea Slop Fotografie
|
|
# VITE_THEME=asf
|
|
# VITE_DEFAULT_LANGUAGE=nl
|
|
# and run `pnpm dev:asf` (uses --mode asf, port 5176). VITE_THEME selects frontend/themes/<name>
|
|
# (unset = the default look); VITE_DEFAULT_LANGUAGE ('nl' | 'en') applies until a user picks a language.
|