refactor(docs): consolidate and cleanup documentation
- Delete 9 deprecated/obsolete docs (~6,300 lines removed) - Move test PDFs to tests/fixtures/ocr-samples/ - Create docs/DEPLOYMENT.md as principal guide - Create tests/ocr-validation/README.md - Update all refs for ultrathin monolith architecture - Update OCR tests to use relative paths Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
ROA2WEB - IIS Sub-Application Configuration
|
||||
====================================================================
|
||||
|
||||
⚠️ CRITICAL - For IIS Sub-Application Deployment! ⚠️
|
||||
CRITICAL - For IIS Sub-Application Deployment!
|
||||
|
||||
This web.config is for when IIS is configured as SUB-APPLICATION:
|
||||
- IIS Application Path: /roa2web
|
||||
@@ -19,11 +19,11 @@
|
||||
**Production Architecture (2-Tier IIS)**:
|
||||
|
||||
Public Server (10.0.20.122 - roa2web.romfast.ro)
|
||||
└─ Proxies ALL to → https://10.0.20.36/{REQUEST_PATH}
|
||||
- Proxies ALL to -> https://10.0.20.36/{REQUEST_PATH}
|
||||
|
||||
Internal Server (10.0.20.36)
|
||||
└─ IIS Sub-App: /roa2web → Physical: C:\inetpub\wwwroot\roa2web\frontend
|
||||
└─ This web.config proxies /api/* to localhost:8000
|
||||
- IIS Sub-App: /roa2web -> Physical: C:\inetpub\wwwroot\roa2web\frontend
|
||||
- This web.config proxies /api/* to localhost:8000
|
||||
|
||||
See: deployment/windows/docs/TWO-TIER-IIS-DEPLOYMENT.md
|
||||
|
||||
@@ -56,6 +56,30 @@
|
||||
<action type="Rewrite" url="index.html" />
|
||||
</rule>
|
||||
</rules>
|
||||
|
||||
<!-- Outbound rules to set Cache-Control based on request path -->
|
||||
<outboundRules>
|
||||
<!-- API responses: NO caching (let backend cache handle it) -->
|
||||
<rule name="No Cache for API" preCondition="IsAPIRequest">
|
||||
<match serverVariable="RESPONSE_Cache-Control" pattern=".*" />
|
||||
<action type="Rewrite" value="no-store, no-cache, must-revalidate, proxy-revalidate" />
|
||||
</rule>
|
||||
|
||||
<!-- Static assets: cache for 1 year -->
|
||||
<rule name="Cache Static Assets" preCondition="IsStaticAsset">
|
||||
<match serverVariable="RESPONSE_Cache-Control" pattern=".*" />
|
||||
<action type="Rewrite" value="public, max-age=31536000" />
|
||||
</rule>
|
||||
|
||||
<preConditions>
|
||||
<preCondition name="IsAPIRequest">
|
||||
<add input="{URL}" pattern="^/api/" />
|
||||
</preCondition>
|
||||
<preCondition name="IsStaticAsset">
|
||||
<add input="{URL}" pattern="\.(js|css|png|jpg|jpeg|gif|svg|woff|woff2|ttf|ico|webmanifest)$" />
|
||||
</preCondition>
|
||||
</preConditions>
|
||||
</outboundRules>
|
||||
</rewrite>
|
||||
|
||||
<!-- Static content configuration -->
|
||||
@@ -68,12 +92,5 @@
|
||||
<remove fileExtension=".json" />
|
||||
<mimeMap fileExtension=".json" mimeType="application/json" />
|
||||
</staticContent>
|
||||
|
||||
<!-- Client cache for static assets (1 year) -->
|
||||
<httpProtocol>
|
||||
<customHeaders>
|
||||
<add name="Cache-Control" value="public, max-age=31536000" />
|
||||
</customHeaders>
|
||||
</httpProtocol>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user