DB_CONNECTION and JWT_KEY explicitly in any non-development environment.
Database
SQL Server connection string used by EF Core.If this variable is not set, the API falls back to a hard-coded development connection string compiled into the binary. Always override this in staging and production.
JWT authentication
Secret key used to sign and verify JWT tokens. A minimum of 32 characters is recommended; shorter keys reduce the security of the HMAC-SHA signature.
The
iss claim written into every issued token and validated on incoming tokens.The
aud claim written into every issued token and validated on incoming tokens.Image uploads (Cloudinary)
Cloudinary configuration is optional. If any of the three variables below are absent, image upload endpoints will return an error. All other API functionality — authentication, user management, profiles, modules, and permissions — continues to work normally.
Your Cloudinary cloud name, visible in the Cloudinary dashboard.
Cloudinary API key.
Cloudinary API secret. Treat this like a password.
Captcha validation (Cloudflare Turnstile)
The Turnstile secret key is read fromappsettings.json (or its environment-specific overrides) under the key Turnstile:SecretKey. You can also supply it via the standard ASP.NET Core environment variable override syntax:
The double underscore (
__) is the ASP.NET Core convention for mapping environment variable names to nested configuration keys. Turnstile__SecretKey maps to Turnstile:SecretKey in appsettings.json.