Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 0c51cd3

Browse files
committed
web-config
1 parent e96d748 commit 0c51cd3

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ jobs:
126126
- task: CopyFiles@2
127127
displayName: 'COPY - web.config - AdminUI'
128128
inputs:
129-
SourceFolder: '$(Build.Repository.LocalPath)/build'
129+
SourceFolder: '$(Build.Repository.LocalPath)/build/admin-ui'
130130
Contents: 'web.config'
131131
TargetFolder: '$(Build.Repository.LocalPath)/src/Frontend/Jp.AdminUI/dist/'
132132

133133
- task: CopyFiles@2
134134
displayName: 'COPY - web.config - UserManagement'
135135
inputs:
136-
SourceFolder: '$(Build.Repository.LocalPath)/build'
136+
SourceFolder: '$(Build.Repository.LocalPath)/build/user-management'
137137
Contents: 'web.config'
138138
TargetFolder: '$(Build.Repository.LocalPath)/src/Frontend/Jp.UserManagement/dist/'
139139

build/admin-ui/web.config

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!-- WEB Config for Argular APPS -->
2+
<?xml version="1.0" encoding="utf-8"?>
3+
<configuration>
4+
<system.web>
5+
<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>
6+
</system.web>
7+
<system.webServer>
8+
<handlers>
9+
<remove name="aspNetCore" />
10+
</handlers>
11+
<security>
12+
<requestFiltering>
13+
<requestLimits maxQueryString="32768"/>
14+
</requestFiltering>
15+
</security>
16+
<rewrite>
17+
<rules>
18+
<rule name="Angular" stopProcessing="true">
19+
<match url="^(?!.*(.js|.bundle.map|.bundle.js.gz|.bundle.css|.bundle.css.gz|.png|.jpg|.ico|.chunk.js|.woff|.woff2|api|.eot|.svg|.ttf|assets|.css)).*$" ignoreCase="false" />
20+
<conditions logicalGrouping="MatchAll">
21+
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false"/>
22+
</conditions>
23+
<action type="Rewrite" url="/admin-ui/" appendQueryString="true" />
24+
</rule>
25+
</rules>
26+
</rewrite>
27+
<staticContent>
28+
<remove fileExtension=".svg" />
29+
<remove fileExtension=".eot" />
30+
<remove fileExtension=".woff" />
31+
<remove fileExtension=".woff2" />
32+
<remove fileExtension=".json" />
33+
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
34+
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
35+
<mimeMap fileExtension=".woff" mimeType="application/x-woff" />
36+
<mimeMap fileExtension=".woff2" mimeType="application/x-woff" />
37+
<mimeMap fileExtension=".json" mimeType="application/json" />
38+
</staticContent>
39+
</system.webServer>
40+
</configuration>

0 commit comments

Comments
 (0)