185 lines
10 KiB
XML
185 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Per altre informazioni su come configurare l'applicazione ASP.NET, vedere
|
|
https://go.microsoft.com/fwlink/?LinkId=169433
|
|
-->
|
|
<configuration>
|
|
<configSections>
|
|
<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>
|
|
<system.web>
|
|
<compilation debug="true" targetFramework="4.6.2" />
|
|
<httpRuntime targetFramework="4.6.2" />
|
|
<pages>
|
|
<namespaces>
|
|
<add namespace="System.Web.Optimization" />
|
|
</namespaces>
|
|
<controls>
|
|
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
|
|
</controls>
|
|
</pages>
|
|
<httpModules>
|
|
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
|
|
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
|
|
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
|
|
</httpModules>
|
|
<sessionState timeout="600" mode="Custom" customProvider="MySessionStateStore">
|
|
<providers>
|
|
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki -->
|
|
<!-- Either use 'connectionString' OR 'settingsClassName' and 'settingsMethodName' OR use 'host','port','accessKey','ssl','connectionTimeoutInMilliseconds' and 'operationTimeoutInMilliseconds'. -->
|
|
<!-- 'throwOnError','retryTimeoutInMilliseconds','databaseId' and 'applicationName' can be used with both options. -->
|
|
<!--
|
|
<add name="MySessionStateStore"
|
|
host = "127.0.0.1" [String]
|
|
port = "" [number]
|
|
accessKey = "" [String]
|
|
ssl = "false" [true|false]
|
|
throwOnError = "true" [true|false]
|
|
retryTimeoutInMilliseconds = "5000" [number]
|
|
databaseId = "0" [number]
|
|
applicationName = "" [String]
|
|
connectionTimeoutInMilliseconds = "5000" [number]
|
|
operationTimeoutInMilliseconds = "1000" [number]
|
|
connectionString = "<Valid StackExchange.Redis connection string>" [String]
|
|
settingsClassName = "<Assembly qualified class name that contains settings method specified below. Which basically return 'connectionString' value>" [String]
|
|
settingsMethodName = "<Settings method should be defined in settingsClass. It should be public, static, does not take any parameters and should have a return type of 'String', which is basically 'connectionString' value.>" [String]
|
|
loggingClassName = "<Assembly qualified class name that contains logging method specified below>" [String]
|
|
loggingMethodName = "<Logging method should be defined in loggingClass. It should be public, static, does not take any parameters and should have a return type of System.IO.TextWriter.>" [String]
|
|
redisSerializerType = "<Assembly qualified class name that implements Microsoft.Web.Redis.ISerializer>" [String]
|
|
/>
|
|
-->
|
|
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="localhost" accessKey="localhost" ssl="false" applicationName="C.TRACK" databaseId="2" />
|
|
</providers>
|
|
</sessionState>
|
|
<customErrors mode="RemoteOnly" defaultRedirect="error.html" />
|
|
</system.web>
|
|
<!--<system.web.extensions>
|
|
<scripting>
|
|
<scriptResourceHandler enableCompression="true" enableCaching="true" />
|
|
</scripting>
|
|
</system.web.extensions>-->
|
|
<appSettings>
|
|
<add key="CodModulo" value="C.TRACK" />
|
|
<add key="cacheOnRedis" value="true" />
|
|
<add key="maxAgeAppConf_min" value="15" />
|
|
<add key="_logDir" value="~/logs/" />
|
|
<add key="logMitigSec" value="1" />
|
|
<!--Conf generale-->
|
|
<add key="appVers" value="stable" />
|
|
<add key="downloadPath" value="c:\Steamware\installers\CTRACK\" />
|
|
<!--<add key="serializeSession" value="true" />-->
|
|
<!--Redis conn-->
|
|
<add key="RedisConn" value="localhost,abortConnect=false,ssl=false" />
|
|
<add key="RedisConnAdmin" value="localhost,abortConnect=false,ssl=false" />
|
|
<add key="redisDb" value="2" />
|
|
<add key="_safePages" value="chLang#jumper#unauthorized#forceUser#login#test#UserAdmin#UpdMan" />
|
|
<!--<add key="_loginPages" value="UserAdmin" />-->
|
|
<!--area auth-->
|
|
<!--<add key="AuthCookieName" value="C.TRACKS_Auth" />-->
|
|
<!--<add key="enablePlain" value="true" />
|
|
<add key="enableCookie" value="true" />
|
|
<add key="cookieDayExp" value="365" />-->
|
|
<!--area DB-->
|
|
<add key="CTrackConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User id=sa;Password=keyhammer16;" />
|
|
<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User id=sa;Password=keyhammer16;" />
|
|
<add key="DevicesAuthConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User id=sa;Password=keyhammer16;" />
|
|
<add key="PermessiConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User id=sa;Password=keyhammer16;" />
|
|
<add key="UtenteCdcConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User id=sa;Password=keyhammer16;" />
|
|
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User id=sa;Password=keyhammer16;" />
|
|
</appSettings>
|
|
<connectionStrings>
|
|
<add name="AppData.Properties.Settings.C_TRACKConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
|
</connectionStrings>
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" />
|
|
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
|
|
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
|
|
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.0.1" newVersion="4.0.0.1" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
<system.webServer>
|
|
<validation validateIntegratedModeConfiguration="false" />
|
|
<modules>
|
|
<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" />
|
|
<remove name="Session" />
|
|
<add name="Session" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
|
|
</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></system.webServer>
|
|
<elmah>
|
|
<!--
|
|
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
|
more information on remote access and securing ELMAH.
|
|
-->
|
|
<security allowRemoteAccess="false" />
|
|
</elmah>
|
|
<location path="elmah.axd" inheritInChildApplications="false">
|
|
<system.web>
|
|
<httpHandlers>
|
|
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
|
|
</httpHandlers>
|
|
<!--
|
|
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
|
more information on using ASP.NET authorization securing ELMAH.
|
|
|
|
<authorization>
|
|
<allow roles="admin" />
|
|
<deny users="*" />
|
|
</authorization>
|
|
-->
|
|
</system.web>
|
|
<system.webServer>
|
|
<handlers>
|
|
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
|
|
</handlers>
|
|
</system.webServer>
|
|
</location>
|
|
</configuration> |