refactor(wrapper): changes to handle docs and frontned now
This commit is contained in:
@@ -1,15 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<location path="." inheritInChildApplications="false">
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
|
||||
</handlers>
|
||||
<aspNetCore processPath="dotnet"
|
||||
arguments=".\LstWrapper.dll"
|
||||
stdoutLogEnabled="true"
|
||||
stdoutLogFile=".\logs\stdout"
|
||||
hostingModel="inprocess" />
|
||||
</system.webServer>
|
||||
</location>
|
||||
<system.webServer>
|
||||
<rewrite>
|
||||
<rules>
|
||||
<!-- Redirect root to /lst/ -->
|
||||
<rule name="Root Redirect" stopProcessing="true">
|
||||
<match url="^$" />
|
||||
<action type="Redirect" url="/lst/" redirectType="Permanent" />
|
||||
</rule>
|
||||
|
||||
<!-- Proxy static assets -->
|
||||
<rule name="Static Assets" stopProcessing="true">
|
||||
<match url="^lst/assets/(.*)" />
|
||||
<action type="Rewrite" url="http://localhost:8080/lst/assets/{R:1}" />
|
||||
</rule>
|
||||
|
||||
<!-- Proxy API requests -->
|
||||
<rule name="API Routes" stopProcessing="true">
|
||||
<match url="^lst/api/(.*)" />
|
||||
<action type="Rewrite" url="http://localhost:8080/lst/api/{R:1}" />
|
||||
</rule>
|
||||
|
||||
<!-- Proxy all other requests -->
|
||||
<rule name="Frontend Routes" stopProcessing="true">
|
||||
<match url="^lst/(.*)" />
|
||||
<action type="Rewrite" url="http://localhost:8080/lst/{R:1}" />
|
||||
</rule>
|
||||
</rules>
|
||||
</rewrite>
|
||||
|
||||
<staticContent>
|
||||
<clear />
|
||||
<mimeMap fileExtension=".js" mimeType="application/javascript" />
|
||||
<mimeMap fileExtension=".mjs" mimeType="application/javascript" />
|
||||
<mimeMap fileExtension=".css" mimeType="text/css" />
|
||||
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
|
||||
</staticContent>
|
||||
|
||||
<handlers>
|
||||
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
|
||||
</handlers>
|
||||
|
||||
<aspNetCore processPath="dotnet" arguments=".\LstWrapper.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user