Skip to content
This repository was archived by the owner on Aug 4, 2024. It is now read-only.

Commit 77d0bf8

Browse files
committed
Sets a safe default web.config file
Removes applicationinsights file
1 parent abb9f15 commit 77d0bf8

File tree

3 files changed

+6
-111
lines changed

3 files changed

+6
-111
lines changed

src/Lithnet.Laps.Web/Lithnet.Laps.Web/ApplicationInsights.config

Lines changed: 0 additions & 106 deletions
This file was deleted.

src/Lithnet.Laps.Web/Lithnet.Laps.Web/Lithnet.Laps.Web.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,6 @@
306306
<Content Include="favicon.ico" />
307307
<Content Include="Global.asax" />
308308
<Content Include="Content\Site.css" />
309-
<Content Include="ApplicationInsights.config">
310-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
311-
</Content>
312309
<Content Include="images\logo.png" />
313310
<Content Include="Scripts\bootstrap.bundle.js" />
314311
<Content Include="Scripts\bootstrap.bundle.min.js" />

src/Lithnet.Laps.Web/Lithnet.Laps.Web/Web.config

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3+
4+
<!-- See the wiki page https://github.com/lithnet/laps-web/wiki/Configuration-settings for help configuring this application -->
5+
36
<configSections>
47
<section name="lithnet-laps" type="Lithnet.Laps.Web.LapsConfigSection" />
58
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
@@ -23,13 +26,12 @@
2326
</nlog>
2427

2528

26-
<appSettings file="secrets.config">
2729

30+
<appSettings file="secrets.config">
2831
<!-- *** Windows auth configuration *** -->
2932
<!-- Ensure that you configure IIS to use *Windows Authentication* and disable Anonymous Authentication -->
3033
<add key="owin:appStartup" value="Lithnet.Laps.Web.Startup.ConfigureWindowsAuth" />
3134

32-
3335
<!-- *** OpenID Connect configuration *** -->
3436
<!-- Ensure that you configure IIS to use *Anonymous Authentication* and disable Windows Authentication -->
3537

@@ -75,6 +77,7 @@
7577
<rate-limit-ip enabled="true" requestsPerMinute="5" requestsPerHour="50" requestsPerDay="100" rateLimitOnXffIP="false"/>
7678
<rate-limit-user enabled="true" requestsPerMinute="5" requestsPerHour="50" requestsPerDay="100" />
7779

80+
<!--
7881
<targets>
7982
<target name="OU=Server Management,DC=dev1,dc=local" type="Container" expire-after="02:00:00">
8083
<audit emailOnSuccess="true" emailOnFailure="true" emailAddresses="server-admins@dev1.local"/>
@@ -89,6 +92,7 @@
8992
</readers>
9093
</target>
9194
</targets>
95+
-->
9296
</lithnet-laps>
9397

9498
<system.web>

0 commit comments

Comments
 (0)