-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config
131 lines (131 loc) · 6.56 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
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<clear />
<add verb="GET" resourceType="File" path="*" name="StaticFile" modules="StaticFileModule" requireAccess="Read" />
</handlers>
<urlCompression doDynamicCompression="false" />
<httpErrors>
<error statusCode="404" subStatusCode="0" responseMode="ExecuteURL" path="/error.404" />
<error statusCode="404" subStatusCode="3" responseMode="ExecuteURL" path="/error.404" />
<error statusCode="404" subStatusCode="8" responseMode="ExecuteURL" path="/error.404" />
</httpErrors>
<staticContent>
<clear />
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="0.00:05:00" />
<mimeMap fileExtension=".404" mimeType="text/html; charset=utf-8" />
<mimeMap fileExtension=".ico" mimeType="image/x-icon" />
<mimeMap fileExtension=".json" mimeType="application/json" />
<mimeMap fileExtension=".txt" mimeType="text/plain" />
</staticContent>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<add name="ARR-Disable-Session-Affinity" value="true" />
<add name="Vary" value="Accept, Accept-Encoding, Origin" />
<add name="X-Content-Type-Options" value="nosniff" />
<add name="Content-Security-Policy" value="sandbox allow-scripts allow-same-origin; style-src https://cdn.make-pizza.info/css/; script-src https://cdn.make-pizza.info/js/ 'unsafe-eval'; img-src https://cdn.make-pizza.info/jpeg/; connect-src https://make-pizza.info/trace.json https://make-pizza.info/cdn-cgi/trace; default-src 'none'; base-uri 'none'; form-action 'none'; referrer no-referrer; frame-ancestors 'none'; reflected-xss block; report-uri https://report-uri.io/report/makepizza" />
<add name="Strict-Transport-Security" value="max-age=15552000; includeSubDomains; preload" />
<add name="Public-Key-Pins-Report-Only" value="pin-sha256="eogdx7lJeCr0IK8RrZNmlfEPDjD9DAzh+OkvzA6ab0M="; pin-sha256="K5cLRLJx5XMmt3FZ4juyw6w77/ZS+AP52Q/mK+UO3P0="; includeSubDomains; report-uri="https://report-uri.io/report/makepizza/reportOnly"" />
<add name="X-Frame-Options" value="DENY" />
<add name="X-XSS-Protection" value="1; mode=block" />
</customHeaders>
</httpProtocol>
<rewrite>
<outboundRules>
<rule name="Charset">
<match serverVariable="RESPONSE_Content_Type" pattern="^(application|text)/.+$" />
<action type="Rewrite" value="{R:0}; charset=utf-8" />
</rule>
<rule name="Access-Control-Allow-Origin" preCondition="IsCORS">
<match serverVariable="RESPONSE_Access_Control_Allow_Origin" pattern="" />
<action type="Rewrite" value="{HTTP_ORIGIN}" />
</rule>
<rule name="Access-Control-Allow-Credentials" preCondition="IsCORS">
<match serverVariable="RESPONSE_Access_Control_Allow_Credentials" pattern="" />
<action type="Rewrite" value="true" />
</rule>
<preConditions>
<preCondition name="IsCORS" logicalGrouping="MatchAny" patternSyntax="ExactMatch">
<add input="{HTTP_ORIGIN}" pattern="https://make-pizza-info-www.azurewebsites.net" />
<add input="{HTTP_ORIGIN}" pattern="https://make-pizza.info" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
</system.webServer>
<location path="css">
<system.webServer>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="180.00:00:00" />
<mimeMap fileExtension=".css" mimeType="text/css" />
</staticContent>
</system.webServer>
</location>
<location path="jpeg">
<system.webServer>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="180.00:00:00" />
<mimeMap fileExtension=".jpeg" mimeType="image/jpeg" />
</staticContent>
</system.webServer>
</location>
<location path="js">
<system.webServer>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="180.00:00:00" />
<mimeMap fileExtension=".js" mimeType="application/x-javascript" />
</staticContent>
</system.webServer>
</location>
<location path="trace.json">
<system.webServer>
<rewrite>
<outboundRules>
<rule name="Accept-Ranges" preCondition="IsOkay">
<match serverVariable="RESPONSE_Accept_Ranges" pattern="" />
<action type="Rewrite" value="none" />
</rule>
<rule name="Cache-Control" preCondition="IsOkay">
<match serverVariable="RESPONSE_Cache_Control" pattern="" />
<action type="Rewrite" value="no-store" />
</rule>
<rule name="ETag" preCondition="IsOkay">
<match serverVariable="RESPONSE_ETag" pattern="" />
<action type="Rewrite" value="" />
</rule>
<rule name="Last-Modified" preCondition="IsOkay">
<match serverVariable="RESPONSE_Last_Modified" pattern="" />
<action type="Rewrite" value="" />
</rule>
<rule name="Vary" preCondition="IsOkay">
<match serverVariable="RESPONSE_Vary" pattern="" />
<action type="Rewrite" value="" />
</rule>
<rule name="provider" preCondition="IsOkay">
<match pattern=""provider": null" />
<action type="Rewrite" value=""provider": "Microsoft Azure"" />
</rule>
<rule name="scheme" preCondition="IsOkay">
<match pattern=""scheme": null" />
<action type="Rewrite" value=""https": "{HTTPS}"" />
</rule>
<rule name="domain" preCondition="IsOkay">
<match pattern=""domain": null" />
<action type="Rewrite" value=""domain": "{HTTP_HOST}"" />
</rule>
<rule name="clients" preCondition="IsOkay">
<match pattern=""clients": null" />
<action type="Rewrite" value=""client": "{HTTP_X_FORWARDED_FOR}"" />
</rule>
<preConditions>
<preCondition name="IsOkay">
<add input="{RESPONSE_STATUS}" pattern="^[23]" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
</system.webServer>
</location>
</configuration>