SLP-composite: 'SLP Software: '; ASF leeg (golden files ongewijzigd). Tests en contract bijgewerkt. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
151 lines
5.4 KiB
JSON
151 lines
5.4 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Information",
|
|
// Pinned at Warning deliberately. At Information, EF prints every SQL statement INCLUDING
|
|
// parameter values, and the login path passes a normalised email address through it.
|
|
"Microsoft.EntityFrameworkCore.Database.Command": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
// The SLP hero has no images: the host writes its title, lead and buttons as text into the first HTML.
|
|
// TitlePrefix: visually hidden brand text before the title lines in the h1 (for crawlers and screen readers).
|
|
"Hero": { "TextOnlyRegion": true, "TitlePrefix": "SLP Software: " },
|
|
"Website": {
|
|
// Secure default: every response carries noindex and /robots.txt disallows all. A production
|
|
// instance must set Website__NoIndex=false and Website__PublicBaseUrl=https://slpsoftware.nl explicitly;
|
|
// robots.txt then allows crawling and points to /sitemap.xml.
|
|
"NoIndex": true,
|
|
"PublicBaseUrl": "",
|
|
// The address the static index.html is written with. On a test instance (PublicBaseUrl set to its own address)
|
|
// the host swaps it for PublicBaseUrl; on production both are equal, so nothing changes.
|
|
"AuthoredBaseUrl": "https://slpsoftware.nl",
|
|
"Sitemap": { "Paths": [ "/", "/privacy" ] },
|
|
// Only these website paths are pages (200); any other path is a real 404. /api, /admin and assets keep working.
|
|
"KnownPaths": [ "/", "/privacy" ]
|
|
},
|
|
"ConnectionStrings": {
|
|
"DefaultConnection": "Server=<production-db-host>;Port=3306;Database=SlpSoftware<Env>;Uid=<db-user>;Pwd=<db-password>"
|
|
},
|
|
"JwtSettings": {
|
|
"Secret": "<secure-long-random-secret-key-from-env>",
|
|
"Issuer": "SlpModularCms",
|
|
"Audience": "SlpModularCmsPortal",
|
|
"ExpiryMinutes": 60,
|
|
"RefreshTokenExpiryDays": 7
|
|
},
|
|
"Availability": {
|
|
"CircuitBreakerSeconds": 30,
|
|
"StatusCacheSeconds": 1
|
|
},
|
|
"MasterModule": {
|
|
"IntegrityCheckIntervalMinutes": 60,
|
|
"HttpTimeoutSeconds": 10,
|
|
"MasterUrl": "<public-url-of-this-master-instance>"
|
|
},
|
|
"MasterPolling": {
|
|
"PollIntervalSeconds": 30,
|
|
"FailOpenAfterMinutes": 5,
|
|
"HttpTimeoutSeconds": 5
|
|
},
|
|
// Mail (invitations, password reset, notices). Mail is OFF while Email:Smtp:Host is empty and every
|
|
// flow then works as before (copy the link). Enable per environment with environment variables:
|
|
// Email__Smtp__Host, Email__Smtp__Port, Email__Smtp__EnableSsl, Email__Smtp__Username,
|
|
// Email__Smtp__Password (secrets only there, never in this file) and App__PublicBaseUrl.
|
|
// Extra sender addresses a site may choose in its settings go in Email:AllowedFromAddresses.
|
|
"Email": {
|
|
"FromAddress": "no-reply@slpsoftware.nl",
|
|
"FromName": "SLP Software",
|
|
"AllowedFromAddresses": [],
|
|
"LogoUrl": "",
|
|
"BrandColor": "#ac0000",
|
|
"Smtp": {
|
|
"Host": "",
|
|
"Port": 587,
|
|
"EnableSsl": true,
|
|
"Username": "",
|
|
"Password": "",
|
|
"TimeoutSeconds": 10
|
|
}
|
|
},
|
|
"App": {
|
|
// Public https address of this site, used for links in mails, e.g. https://test.andreaslop.nl
|
|
"PublicBaseUrl": "",
|
|
"DefaultLanguage": "nl"
|
|
},
|
|
"Cors": {
|
|
"AllowedOrigins": []
|
|
},
|
|
"Contact": {
|
|
// OFF by default. The contact rate limits are per visitor (see ContactRateLimitPartition), but that only
|
|
// works with the real client address: behind a reverse proxy (IIS) set ForwardedHeaders__KnownProxies__0 to the
|
|
// proxy's address first, otherwise all visitors share ONE bucket. Release conditions, in order: that setting;
|
|
// Contact__RecipientEmail and working mail (environment only); captcha (recommended); then Contact__Enabled=true.
|
|
// The full list is in the Contact section of the Api.AndreaSlopFotografie appsettings.json.
|
|
"Enabled": false,
|
|
"SiteId": "slpsoftware",
|
|
"MinSeconds": 3,
|
|
"TokenLifetimeMinutes": 120,
|
|
"RetentionMonths": 12,
|
|
"SpamRetentionDays": 30,
|
|
"MaxSpamRowsPerDay": 200,
|
|
"MaxBodyBytes": 16384,
|
|
"Captcha": {
|
|
"Enabled": false
|
|
}
|
|
},
|
|
"RateLimiting": {
|
|
"Login": {
|
|
"PermitLimit": 5,
|
|
"WindowSeconds": 60
|
|
},
|
|
"Refresh": {
|
|
"PermitLimit": 20,
|
|
"WindowSeconds": 60
|
|
},
|
|
"SentryTunnel": {
|
|
"PermitLimit": 60,
|
|
"WindowSeconds": 60
|
|
},
|
|
"OfferingsPublic": {
|
|
"PermitLimit": 120,
|
|
"WindowSeconds": 60
|
|
},
|
|
"ContactForm": {
|
|
"PermitLimit": 5,
|
|
"WindowSeconds": 600
|
|
},
|
|
"ContactToken": {
|
|
"PermitLimit": 20,
|
|
"WindowSeconds": 600
|
|
},
|
|
"ContactResend": {
|
|
"PermitLimit": 5,
|
|
"WindowSeconds": 600
|
|
}
|
|
},
|
|
"SecurityHeaders": {
|
|
"Enabled": true,
|
|
"DefaultPolicy": "Relaxed",
|
|
"PathPolicies": [
|
|
{ "PathPrefix": "/admin", "Policy": "Strict" },
|
|
{ "PathPrefix": "/api/v1", "Policy": "Strict" },
|
|
{ "PathPrefix": "/health", "Policy": "Strict" }
|
|
],
|
|
"AllowedScriptOrigins": [],
|
|
"AllowedConnectOrigins": []
|
|
},
|
|
"Observability": {
|
|
// Supplied per environment as Observability__SentryDsn. Empty means Sentry is skipped
|
|
// entirely and console logging continues — a normal, supported state, not an error.
|
|
"SentryDsn": "",
|
|
// Falls back to ASPNETCORE_ENVIRONMENT when empty.
|
|
"Environment": "",
|
|
// Sentry's free plan counts transactions against the same quota as errors, and this setup's
|
|
// value is in errors rather than performance traces.
|
|
"TracesSampleRate": 0.1,
|
|
"TunnelMaxPayloadBytes": 204800
|
|
}
|
|
}
|