Continuous Integration / config-sls (pull_request) Successful in 6s
Continuous Integration / changes (pull_request) Successful in 12s
Continuous Integration / config-asf (pull_request) Successful in 6s
Continuous Integration / frontend-prepare (pull_request) Successful in 26s
Continuous Integration / frontend-build (pull_request) Successful in 38s
Continuous Integration / compile-sites (pull_request) Successful in 1m42s
Continuous Integration / backend-build (pull_request) Successful in 1m41s
Continuous Integration / frontend-lint (pull_request) Successful in 46s
Continuous Integration / frontend-test (pull_request) Successful in 2m43s
Continuous Integration / backend-test (pull_request) Successful in 3m6s
Continuous Integration / vulnerability-scan (pull_request) Successful in 9m22s
Continuous Integration / publish-sls-test (pull_request) Skipped
Continuous Integration / publish-sls-production (pull_request) Skipped
Continuous Integration / deploy-sls-test (pull_request) Skipped
Continuous Integration / deploy-sls-production (pull_request) Skipped
Continuous Integration / publish-asf-test (pull_request) Skipped
Continuous Integration / deploy-asf-test (pull_request) Skipped
Continuous Integration / publish-asf-production (pull_request) Skipped
Continuous Integration / deploy-asf-production (pull_request) Skipped
Continuous Integration / smoke-sls-test (pull_request) Skipped
Continuous Integration / smoke-asf-test (pull_request) Skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
65 lines
3.1 KiB
XML
65 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
web.config for the ASF production host on IIS (MijnHostingPartner). It REPLACES the web.config that
|
|
`dotnet publish` generates (the pipeline copies this file over it, see publish-asf-production).
|
|
|
|
Deliberately small: the aspNetCore handler (inprocess), the stdout log for the first start, the upload limit,
|
|
request filtering as defense in depth, and the hoster's defaults. No settings and no secrets live here: they
|
|
are all in the server-only appsettings.Production.json next to the program. The only environment
|
|
variable is ASPNETCORE_ENVIRONMENT. See aidlc-docs/features/andreaslop-site-hosting/asf-iis-production-config.md.
|
|
-->
|
|
<configuration>
|
|
<location path="." inheritInChildApplications="false">
|
|
<system.webServer>
|
|
<handlers>
|
|
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
|
|
</handlers>
|
|
|
|
<!-- inprocess: the app runs inside the IIS worker process (Hosting Bundle is installed on the host).
|
|
stdoutLogEnabled is "true" ONLY for the first start: it logs the startup lines (migrations, Magick
|
|
self-test, guard messages; no secrets). Set it to "false" after the first successful start (see
|
|
docs/deploy-asf-productie.md), otherwise the files in .\logs keep growing. The logs folder must exist
|
|
and be writable for the application pool identity; the deploy never touches it. -->
|
|
<aspNetCore processPath=".\SlpModularCms.Api.AndreaSlopFotografie.exe"
|
|
arguments=""
|
|
hostingModel="inprocess"
|
|
stdoutLogEnabled="true"
|
|
stdoutLogFile=".\logs\stdout">
|
|
<environmentVariables>
|
|
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" />
|
|
</environmentVariables>
|
|
</aspNetCore>
|
|
|
|
<security>
|
|
<requestFiltering>
|
|
<!-- IIS limit (default 30 MB) above the app limit for one photo (10 MB). -->
|
|
<requestLimits maxAllowedContentLength="31457280" />
|
|
<!-- Defense in depth, in case the handler ever fails and IIS would serve files itself: the
|
|
configuration files and the program files are never directly downloadable. -->
|
|
<hiddenSegments>
|
|
<add segment="appsettings.json" />
|
|
<add segment="appsettings.Production.json" />
|
|
<add segment="appsettings.Development.json" />
|
|
<add segment="logs" />
|
|
</hiddenSegments>
|
|
<fileExtensions>
|
|
<add fileExtension=".dll" allowed="false" />
|
|
<add fileExtension=".pdb" allowed="false" />
|
|
<add fileExtension=".exe" allowed="false" />
|
|
<add fileExtension=".config" allowed="false" />
|
|
</fileExtensions>
|
|
</requestFiltering>
|
|
</security>
|
|
|
|
<!-- Taken over from the hoster's default file -->
|
|
<directoryBrowse enabled="false" />
|
|
<httpProtocol>
|
|
<customHeaders>
|
|
<remove name="X-Powered-By" />
|
|
</customHeaders>
|
|
</httpProtocol>
|
|
<httpErrors errorMode="DetailedLocalOnly" existingResponse="Auto" />
|
|
</system.webServer>
|
|
</location>
|
|
</configuration>
|