-
Notifications
You must be signed in to change notification settings - Fork 32
/
web.config
211 lines (205 loc) · 8.28 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="366.00:00:00" />
<remove fileExtension=".html" />
<remove fileExtension=".json" />
<remove fileExtension=".css" />
<remove fileExtension=".webp" />
<remove fileExtension="woff" />
<remove fileExtension="woff2" />
<remove fileExtension=".mp4" />
<mimeMap fileExtension=".html" mimeType="text/html" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<mimeMap fileExtension=".css" mimeType="text/css" />
<mimeMap fileExtension=".webp" mimeType="image/webp" />
<mimeMap fileExtension="woff" mimeType="application/x-font-woff" />
<mimeMap fileExtension="woff2" mimeType="application/font-woff2" />
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
</staticContent>
<httpErrors errorMode="Custom" existingResponse="Replace">
<remove statusCode="404" />
<error statusCode="404" path="404.html" responseMode="File" />
</httpErrors>
<httpProtocol>
<customHeaders>
<!-- disables iframing the website from other than the origin -->
<add name="X-Frame-Options" value="DENY" />
<!-- configure the built in reflective XSS protection found in Internet Explorer, Chrome and Safari (Webkit). -->
<add name="X-XSS-Protection" value="1; mode=block" />
<add name="Referrer-Policy" value="strict-origin-when-cross-origin"/>
<!-- prevents Google Chrome and Internet Explorer from trying to mime-sniff the content-type of a response away from the one being declared by the server -->
<add name="X-Content-Type-Options" value="nosniff"/>
<add name="Content-Security-Policy" value="upgrade-insecure-requests; base-uri 'self'; frame-ancestors 'self'; form-action 'self'; object-src 'self' https://opencollective.com;"/>
<add name="Permissions-Policy" value="accelerometer=(self), camera=(self), geolocation=(self), gyroscope=(self), magnetometer=(self), microphone=(self), payment=(self), usb=(self)" />
</customHeaders>
</httpProtocol>
<rewrite>
<rules>
<rule name="Redirect xenko.com to stride3d.net" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(.*)xenko\.com$" />
</conditions>
<action type="Redirect" url="https://{C:1}stride3d.net/{R:0}" redirectType="Permanent" />
</rule>
<rule name="Redirect /privacypolicy to /legal/privacy-policy">
<match url="^privacypolicy(.*)$" />
<action type="Rewrite" url="legal/privacy-policy{R:1}"/>
</rule>
<rule name="Redirect all requests to https" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action
type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}"
redirectType="Permanent" appendQueryString="false" />
</rule>
<rule name="Redirect Blog Page 2" stopProcessing="true">
<match url="^blog/page2/$" />
<action type="Redirect" url="blog/1/" redirectType="Permanent" />
</rule>
<rule name="Redirect Blog Page 3" stopProcessing="true">
<match url="^blog/page3/$" />
<action type="Redirect" url="blog/2/" redirectType="Permanent" />
</rule>
<rule name="Redirect Blog Page 4" stopProcessing="true">
<match url="^blog/page4/$" />
<action type="Redirect" url="blog/3/" redirectType="Permanent" />
</rule>
<rule name="Redirect Blog Page 5" stopProcessing="true">
<match url="^blog/page5/$" />
<action type="Redirect" url="blog/4/" redirectType="Permanent" />
</rule>
<rule name="Redirect Blog Page 6" stopProcessing="true">
<match url="^blog/page6/$" />
<action type="Redirect" url="blog/5/" redirectType="Permanent" />
</rule>
<rule name="Redirect Blog Page 7" stopProcessing="true">
<match url="^blog/page7/$" />
<action type="Redirect" url="blog/6/" redirectType="Permanent" />
</rule>
</rules>
<outboundRules>
<rule name="Add Strict-Transport-Security when HTTPS" enabled="true">
<match serverVariable="RESPONSE_Strict_Transport_Security"
pattern=".*" />
<conditions>
<add input="{HTTPS}" pattern="on" ignoreCase="true" />
</conditions>
<action type="Rewrite" value="max-age=31536000" />
</rule>
</outboundRules>
</rewrite>
<urlCompression doStaticCompression="true" doDynamicCompression="true"/>
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
<dynamicTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="application/x-javascript" enabled="true"/>
<add mimeType="application/json" enabled="true" />
<add mimeType="text/html" enabled="true" />
<add mimeType="*/*" enabled="false"/>
</dynamicTypes>
<staticTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="application/x-javascript" enabled="true"/>
<add mimeType="application/json" enabled="true" />
<add mimeType="text/html" enabled="true" />
<add mimeType="image/svg+xml" enabled="true" />
<add mimeType="*/*" enabled="false"/>
</staticTypes>
</httpCompression>
</system.webServer>
<!-- We are disabling caching for important folders (pages), html files -->
<location path="index.html" inheritInChildApplications="false">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
<remove fileExtension=".html" />
<mimeMap fileExtension=".html" mimeType="text/html" />
</staticContent>
</system.webServer>
</location>
<location path="archive" inheritInChildApplications="false">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
<remove fileExtension=".html" />
<mimeMap fileExtension=".html" mimeType="text/html" />
</staticContent>
</system.webServer>
</location>
<location path="tags" inheritInChildApplications="false">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
<remove fileExtension=".html" />
<mimeMap fileExtension=".html" mimeType="text/html" />
</staticContent>
</system.webServer>
</location>
<location path="community" inheritInChildApplications="false">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
<remove fileExtension=".html" />
<mimeMap fileExtension=".html" mimeType="text/html" />
</staticContent>
</system.webServer>
</location>
<location path="sponsor" inheritInChildApplications="false">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
<remove fileExtension=".html" />
<mimeMap fileExtension=".html" mimeType="text/html" />
</staticContent>
</system.webServer>
</location>
<location path="download" inheritInChildApplications="false">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
<remove fileExtension=".html" />
<mimeMap fileExtension=".html" mimeType="text/html" />
</staticContent>
</system.webServer>
</location>
<location path="features" inheritInChildApplications="false">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
<remove fileExtension=".html" />
<mimeMap fileExtension=".html" mimeType="text/html" />
</staticContent>
</system.webServer>
</location>
<location path="feed.xml" inheritInChildApplications="false">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
</staticContent>
</system.webServer>
</location>
<location path="search.json" inheritInChildApplications="false">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" />
</staticContent>
</system.webServer>
</location>
<location path="sitemap.xml" inheritInChildApplications="false">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00" />
</staticContent>
</system.webServer>
</location>
</configuration>