Skip to content

Instantly share code, notes, and snippets.

@gregorypilar
Forked from alexsorokoletov/Web.config
Created September 11, 2018 21:25
Show Gist options
  • Save gregorypilar/f1ed0adf64541a66826834ffa2b47d43 to your computer and use it in GitHub Desktop.
Save gregorypilar/f1ed0adf64541a66826834ffa2b47d43 to your computer and use it in GitHub Desktop.
Web.config for Azure App Services/Web Sites to allow downloading static files (withouth extension) for Electron autoupdate
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension="." mimeType="text/plain" />
<mimeMap fileExtension=".nupkg" mimeType="application/octet-stream" />
<mimeMap fileExtension=".exe" mimeType="application/octet-stream" />
<mimeMap fileExtension=".zip" mimeType="application/x-zip-compressed" />
</staticContent>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment