-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splitting configuration for staging and production
- Loading branch information
1 parent
ccd46b6
commit c5cb3f9
Showing
4 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<system.webServer> | ||
<defaultDocument> | ||
<files> | ||
<clear /> | ||
<add value="index.html" /> | ||
<add value="index.htm" /> | ||
<add value="Default.aspx" /> | ||
<add value="Default.htm" /> | ||
<add value="Default.asp" /> | ||
</files> | ||
</defaultDocument> | ||
<staticContent> | ||
<!-- Set expire headers to 30 days for static content--> | ||
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" /> | ||
<!-- use utf-8 encoding for anything served text/plain or text/html --> | ||
<remove fileExtension=".css" /> | ||
<mimeMap fileExtension=".css" mimeType="text/css" /> | ||
<remove fileExtension=".js" /> | ||
<mimeMap fileExtension=".js" mimeType="application/javascript" /> | ||
<remove fileExtension=".json" /> | ||
<mimeMap fileExtension=".json" mimeType="application/json" /> | ||
<remove fileExtension=".rss" /> | ||
<mimeMap fileExtension=".rss" mimeType="application/rss+xml; charset=UTF-8" /> | ||
<remove fileExtension=".html" /> | ||
<mimeMap fileExtension=".html" mimeType="text/html; charset=UTF-8" /> | ||
<remove fileExtension=".xml" /> | ||
<mimeMap fileExtension=".xml" mimeType="application/xml; charset=UTF-8" /> | ||
<!-- HTML5 Audio/Video mime types--> | ||
<remove fileExtension=".mp3" /> | ||
<mimeMap fileExtension=".mp3" mimeType="audio/mpeg" /> | ||
<remove fileExtension=".mp4" /> | ||
<mimeMap fileExtension=".mp4" mimeType="video/mp4" /> | ||
<remove fileExtension=".ogg" /> | ||
<mimeMap fileExtension=".ogg" mimeType="audio/ogg" /> | ||
<remove fileExtension=".ogv" /> | ||
<mimeMap fileExtension=".ogv" mimeType="video/ogg" /> | ||
<remove fileExtension=".webm" /> | ||
<mimeMap fileExtension=".webm" mimeType="video/webm" /> | ||
<remove fileExtension=".vtt" /> | ||
<mimeMap fileExtension=".vtt" mimeType="text/vtt" /> | ||
<!-- Proper svg serving. Required for svg webfonts on iPad --> | ||
<remove fileExtension=".svg" /> | ||
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> | ||
<remove fileExtension=".svgz" /> | ||
<mimeMap fileExtension=".svgz" mimeType="image/svg+xml" /> | ||
<!-- HTML4 Web font mime types --> | ||
<!-- Remove default IIS mime type for .eot which is application/octet-stream --> | ||
<remove fileExtension=".eot" /> | ||
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /> | ||
<remove fileExtension=".ttf" /> | ||
<mimeMap fileExtension=".ttf" mimeType="application/x-font-ttf" /> | ||
<remove fileExtension=".ttc" /> | ||
<mimeMap fileExtension=".ttc" mimeType="application/x-font-ttf" /> | ||
<remove fileExtension=".otf" /> | ||
<mimeMap fileExtension=".otf" mimeType="font/otf" /> | ||
<remove fileExtension=".woff" /> | ||
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> | ||
<remove fileExtension=".woff2" /> | ||
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" /> | ||
<remove fileExtension=".crx" /> | ||
<mimeMap fileExtension=".crx" mimeType="application/x-chrome-extension" /> | ||
<remove fileExtension=".xpi" /> | ||
<mimeMap fileExtension=".xpi" mimeType="application/x-xpinstall" /> | ||
<remove fileExtension=".safariextz" /> | ||
<mimeMap fileExtension=".safariextz" mimeType="application/octet-stream" /> | ||
<!-- Flash Video mime types--> | ||
<remove fileExtension=".flv" /> | ||
<mimeMap fileExtension=".flv" mimeType="video/x-flv" /> | ||
<remove fileExtension=".f4v" /> | ||
<mimeMap fileExtension=".f4v" mimeType="video/mp4" /> | ||
<!-- Asorted types --> | ||
<remove fileExtension=".ico" /> | ||
<mimeMap fileExtension=".ico" mimeType="image/x-icon" /> | ||
<remove fileExtension=".webp" /> | ||
<mimeMap fileExtension=".webp" mimeType="image/webp" /> | ||
<remove fileExtension=".appcache" /> | ||
<mimeMap fileExtension=".appcache" mimeType="text/cache-manifest" /> | ||
<remove fileExtension=".manifest" /> | ||
<mimeMap fileExtension=".manifest" mimeType="text/cache-manifest" /> | ||
<remove fileExtension=".htc" /> | ||
<mimeMap fileExtension=".htc" mimeType="text/x-component" /> | ||
<remove fileExtension=".xpi" /> | ||
<mimeMap fileExtension=".xpi" mimeType="application/octet-stream" /> | ||
<remove fileExtension=".crx" /> | ||
<mimeMap fileExtension=".crx" mimeType="application/octet-stream" /> | ||
</staticContent> | ||
<rewrite> | ||
<rules> | ||
<rule name="redirect all" stopProcessing="true"> | ||
<match url="^(.*)$" ignoreCase="false" /> | ||
<conditions logicalGrouping="MatchAll"> | ||
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" /> | ||
</conditions> | ||
<action type="Rewrite" url="index.html" appendQueryString="true" /> | ||
</rule> | ||
</rules> | ||
</rewrite> | ||
</system.webServer> | ||
</configuration> |
File renamed without changes.