Merge branch 'master' of github.com:TerribleDev/blog.terribledev.io.dotnet

This commit is contained in:
Tommy Parnell
2019-02-03 21:22:06 -05:00
3 changed files with 17 additions and 10 deletions

7
docker-compose.yml Normal file
View File

@@ -0,0 +1,7 @@
version: '3'
services:
webapp:
build: ./src/TerribleDev.Blog.Web
ports:
- "80:80"
- "443:443"

View File

@@ -98,17 +98,17 @@ namespace TerribleDev.Blog.Web
app.UseContentSecurityPolicy(
new ContentSecurityPolicy()
{
//DefaultSrc = new HashSet<string>() {
// DefaultSrc = new HashSet<string>() {
// CSPConstants.Self, "https://www.google-analytics.com", "https://www.googletagmanager.com", "https://stats.g.doubleclick.net"
//},
//ScriptSrc = new HashSet<string>()
//{
// CSPConstants.Self, "https://www.google-analytics.com", "https://www.googletagmanager.com", "https://stats.g.doubleclick.net"
//},
//StyleSrc = new HashSet<string>()
//{
// },
// ScriptSrc = new HashSet<string>()
// {
// CSPConstants.Self, CSPConstants.UnsafeInline, "https://www.google-analytics.com", "https://www.googletagmanager.com", "https://stats.g.doubleclick.net"
// },
// StyleSrc = new HashSet<string>()
// {
// CSPConstants.Self, CSPConstants.UnsafeInline
//},
// },
UpgradeInsecureRequests = true
});
app.UseOutputCaching();

View File

@@ -26,7 +26,7 @@
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.0.2105168" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.0" />
<PackageReference Include="YamlDotNet" Version="5.3.0" />
<PackageReference Include="HardHat" Version="2.1.0" />
<PackageReference Include="HardHat" Version="2.1.1" />
<PackageReference Include="Microsoft.SyndicationFeed.ReaderWriter" Version="1.0.2" />
<PackageReference Include="WebEssentials.AspNetCore.OutputCaching" Version="1.0.16" />
</ItemGroup>