add ssl 1.2
[CPE_learningsite] / CPE / CPE.App / CPE.App.Api / Web.config
index 60d407d..8dc71cb 100644 (file)
@@ -1,47 +1,39 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
   For more information on how to configure your ASP.NET application, please visit
   http://go.microsoft.com/fwlink/?LinkId=301879
   -->
 <configuration>
   <configSections>
 <!--
   For more information on how to configure your ASP.NET application, please visit
   http://go.microsoft.com/fwlink/?LinkId=301879
   -->
 <configuration>
   <configSections>
-    
+    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
     <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
     <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
-  <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --><sectionGroup name="elmah">
-      <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
-      <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
-      <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
-      <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
-    </sectionGroup></configSections>
+  <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
   <connectionStrings>
   <connectionStrings>
-    <!--<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-CPE.App.Api-20151016073126.mdf;Initial Catalog=aspnet-CPE.App.Api-20151016073126;Integrated Security=True" providerName="System.Data.SqlClient" />-->
-    <!--<add name="CPE.DATA" connectionString="Data Source=cpeonlinewebcasts.com;Initial Catalog=webcpe_reporting;Persist Security Info=True;User ID=webcpe_reporting;Password=Pa$$w0rd" providerName="System.Data.SqlClient" />-->
-      <!--<add name="CPE.DATA" connectionString="Data Source=DESKTOP-6Q8LB2M\SQL2014;Initial Catalog=webcpe_reporting;Persist Security Info=True;User ID=sa;Password=intesolver" providerName="System.Data.SqlClient"/>
-      <add name="CPE.DATA.Local" connectionString="Data Source=DESKTOP-6Q8LB2M\SQL2014;Initial Catalog=webcpe_reporting;Persist Security Info=True;User ID=sa;Password=intesolver" providerName="System.Data.SqlClient"/>-->
-    <add name="CPE.DATA" connectionString="Data Source=localhost;Initial Catalog=webcpe_reporting;Persist Security Info=True;User ID=sa;Password=intesolver" providerName="System.Data.SqlClient" />
-    <add name="CPE.DATA.Local" connectionString="Data Source=localhost;Initial Catalog=webcpe_reporting;Persist Security Info=True;User ID=sa;Password=intesolver" providerName="System.Data.SqlClient" />
+    <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-CPE.App.Api-20151016073126.mdf;Initial Catalog=aspnet-CPE.App.Api-20151016073126;Integrated Security=True" providerName="System.Data.SqlClient" />
+   <add name="CPE.DATA" connectionString="Data Source=DESKTOP-Q4S6BS5;Initial Catalog=webcpe_reporting;Persist Security Info=True;User ID=sa;Password=1" providerName="System.Data.SqlClient" />
+    <add name="CPE.DATA.Local" connectionString="Data Source=DESKTOP-Q4S6BS5;Initial Catalog=webcpe_reporting;Persist Security Info=True;User ID=sa;Password=1" providerName="System.Data.SqlClient"/>
+       <!--<add name="CPE.DATA" connectionString="Data Source=localhost;Initial Catalog=webcpe_reporting;Persist Security Info=True;User ID=webcpe_reporting;Password=Pa$$w0rd" providerName="System.Data.SqlClient" />-->
+       <!--<add name="CPE.DATA.Local" connectionString="Data Source=localhost;Initial Catalog=webcpe_reporting;Persist Security Info=True;User ID=webcpe_reporting;Password=Pa$$w0rd" providerName="System.Data.SqlClient" />-->
+
 
   </connectionStrings>
 
   </connectionStrings>
+  <log4net configSource="log4net.config" />
   <appSettings>
   <appSettings>
-    <add key="LrsEndpoint" value="http://api.cpeonlinewebcasts.com/api/statements" />
-    <add key="LrsEndpointUsername" value="admin" />
-    <add key="LrsEndpointPassword" value="password" />
-    <add key="EmailSender" value="csreg@cpeincmail.com" />
-    <add key="EmailReceiver" value="sswebcast@cpeincmail.com" />
-    <add key="EmailSubject" value="Self-Study Webcast Certificate of Completion" />
-    <add key="RouteDebugger:Enabled" value="true" />
- <!--   <add key="Elucidat.PublicKey" value="FE966693-65D7-0AE0-2CC6-E576109A0BF5" /> CPE's public key-->
-    <add key="Elucidat.PublicKey" value="1558A022-336C-6922-4B1F-AD3505839D5A" />
-    <add key="Elucidat.SecretKey" value="A393E5ED-C79F-4EB7-7DAE-9CB6C090B9E8" />
-    <!--<add key="Elucidat.Secretkey" value="9CB149B8-F419-36FB-CCD3-D45864BC7B1E" /> secret key for CPE-->
-    <add key="Elucidat.BaseUrl" value="https://api.elucidat.com/v2/" />
-    <add key="elmah.mvc.disableHandler" value="false" /><add key="elmah.mvc.disableHandleErrorFilter" value="false" />
-    <add key="elmah.mvc.requiresAuthentication" value="false" />
-    <add key="elmah.mvc.IgnoreDefaultRoute" value="false" />
-    <add key="elmah.mvc.allowedRoles" value="*" />
-    <add key="elmah.mvc.allowedUsers" value="*" />
-    <add key="elmah.mvc.route" value="elmah" />
-    <add key="elmah.mvc.UserAuthCaseSensitive" value="true" />
+    <add key="LrsEndpoint" value="http://api.cpeonlinewebcasts.com/api/statements"/>
+    <add key="LrsEndpointUsername" value="admin"/>
+    <add key="LrsEndpointPassword" value="password"/>
+    <add key="EmailSender" value="csreg@cpeincmail.com"/>
+    <add key="EmailReceiver" value="sswebcast@cpeincmail.com"/>
+       <add key="EmailSubject" value="Your certificate of completion from CPE Inc." />
+    <add key="MS_WebHookReceiverSecret_GitHub" value="c54c44faafdf9584547f8209a8033ee47994f9a1" />
+       <add key="MS_WebHookReceiverSecret_Elucidat" value="FE966693-65D7-0AE0-2CC6-E576109A0BF5" />
+    <add key="MS_WebHookReceiverSecret_GenericJson" value="12345678901234567890123456789012" />
+    <add key="RouteDebugger:Enabled" value="false" />
+       <add key="Elucidat.PublicKey" value="FE966693-65D7-0AE0-2CC6-E576109A0BF5" /> 
+    <add key="Elucidat.Secretkey" value="9CB149B8-F419-36FB-CCD3-D45864BC7B1E" />      
+       <add key="Elucidat.BaseUrl" value="https://api.elucidat.com/v2/"/>
+       
+       <add key="CertLink" value="http://api.cpeonlinewebcasts.com/Certificate?a={0}&amp;b={1}&amp;c={2}"/>
   </appSettings>
   <!--
     For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
   </appSettings>
   <!--
     For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
       </system.Web>
   -->
   <system.web>
       </system.Web>
   -->
   <system.web>
-
-    <customErrors mode="On" redirectMode="ResponseRedirect" >
-     
-    </customErrors>
     <authentication mode="None" />
     <compilation debug="true" targetFramework="4.5" />
     <httpRuntime />
     <pages controlRenderingCompatibilityVersion="4.0" />
     <authentication mode="None" />
     <compilation debug="true" targetFramework="4.5" />
     <httpRuntime />
     <pages controlRenderingCompatibilityVersion="4.0" />
-  <httpModules>
-      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
-      <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
-      <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
-    </httpModules></system.web>
+  </system.web>
   <system.webServer>
   <system.webServer>
+    <httpErrors errorMode="Detailed" existingResponse="PassThrough"></httpErrors>
     <modules>
       <remove name="FormsAuthentication" />
     <modules>
       <remove name="FormsAuthentication" />
-    <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" /><add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" /><add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" /></modules>
+    </modules>
     
   <handlers>
       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
       <remove name="OPTIONSVerbHandler" />
       <remove name="TRACEVerbHandler" />
       <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
     
   <handlers>
       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
       <remove name="OPTIONSVerbHandler" />
       <remove name="TRACEVerbHandler" />
       <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
-    </handlers><validation validateIntegratedModeConfiguration="false" /></system.webServer>
+    </handlers>
+        <directoryBrowse enabled="false" /></system.webServer>
   <runtime>
     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <dependentAssembly>
   <runtime>
     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <dependentAssembly>
       <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
     </compilers>
   </system.codedom>
       <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
     </compilers>
   </system.codedom>
-<elmah>
-  </elmah></configuration>
+</configuration>