- Replaced README.md with a modern, production-focused version featuring quick start, architecture, workflow, troubleshooting, and security sections - Added DEPLOYMENT_GUIDE_IIS_Windows11.md with step-by-step IIS deployment instructions, including SSL, CORS, and permissions - Added version-controlled web.config files for API and Blazor app with HTTPS redirection, security headers, and SPA/static file support - Moved detailed yt-dlp integration notes to README_UPDATED.md for technical reference - Improves clarity, maintainability, and production readiness of documentation and deployment
41 lines
1.5 KiB
XML
41 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<system.webServer>
|
|
<!-- Force HTTPS -->
|
|
<rewrite>
|
|
<rules>
|
|
<rule name="Redirect to HTTPS" stopProcessing="true">
|
|
<match url=".*" />
|
|
<conditions>
|
|
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
|
|
</conditions>
|
|
<action type="Redirect" url="https://{HTTP_HOST}/{R:0}" redirectType="Permanent" />
|
|
</rule>
|
|
<rule name="Serve subdir">
|
|
<match url=".*" />
|
|
<action type="Rewrite" url="wwwroot\{R:0}" />
|
|
</rule>
|
|
<rule name="SPA fallback routing" stopProcessing="true">
|
|
<match url=".*" />
|
|
<conditions logicalGrouping="MatchAll">
|
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
|
</conditions>
|
|
<action type="Rewrite" url="wwwroot\" />
|
|
</rule>
|
|
</rules>
|
|
</rewrite>
|
|
<staticContent>
|
|
<mimeMap fileExtension=".blat" mimeType="application/octet-stream" />
|
|
<mimeMap fileExtension=".dll" mimeType="application/octet-stream" />
|
|
<mimeMap fileExtension=".wasm" mimeType="application/wasm" />
|
|
</staticContent>
|
|
<!-- Security headers -->
|
|
<httpProtocol>
|
|
<customHeaders>
|
|
<add name="X-Content-Type-Options" value="nosniff" />
|
|
<add name="X-Frame-Options" value="DENY" />
|
|
<add name="X-XSS-Protection" value="1; mode=block" />
|
|
</customHeaders>
|
|
</httpProtocol>
|
|
</system.webServer>
|
|
</configuration> |