Project

General

Profile

Bug #3795 » Web.config

Mr Ikmal, 08/14/2025 09:48 AM

 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
  For more information on how to configure your ASP.NET application, please visit
4
  http://go.microsoft.com/fwlink/?LinkId=169433
5
  -->
6
<configuration>
7
  <appSettings>
8
    <add key="ClientID" value="200" />
9
    <add key="WebServiceApiUrl" value="http://localhost:63134/" />
10
    <add key="WebServiceApiUrl2" value="http://localhost:65134/" />
11
	
12
	<!-- suported file type > -->
13
    <add key="supportedTypesFile" value="*" />
14
    <!-- max size file in MB> -->
15
    <add key="supportedSizeFile" value="25" />
16
	<add key="small" value="1" />
17
	<add key="medium" value="100" />
18
	<add key="large" value="200" />
19
	
20
    <add key="webpages:Version" value="2.0.0.0" />
21
    <add key="webpages:Enabled" value="false" />
22
    <add key="PreserveLoginUrl" value="true" />
23
    <add key="ClientValidationEnabled" value="true" />
24
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
25
	<add key="UploadFolderLog" value="C:/MinovaESProd/UI/Uploads/Logs/" />
26
	<add key="UploadFolder" value="C:/MinovaESProd/UI/Uploads/" />
27
    <add key="UsingWebFolderFile" value="0" />
28
	<add key="EncDataImp" value="1" />
29
    <!--add by atin for report viewer-->
30
    <add key="SvcUrlReport" value="http://10.20.82.37/ReportServer/" />
31
    <add key="SvcUrlReportSummary" value="/MinovaES_BMS_Prod/MinovaESReport/" />
32

    
33
    <add key="rvu" value="repservuser" />
34
    <add key="rvp" value="M!N0V@1s" />
35
    <add key="DesktopUIFront" value="0" />
36
	<add key="OrgChartTemp" value="C:/MinovaESProd/UI/app/tempOrgChart/" />
37
    <!--end add by atin for report viewer-->
38
	
39
	 <!--
40
    Start - Fungsi untuk membedakan port  HR dan ESS diambil dari User Type
41
    value:
42
    HR=HR
43
    ESS=ESS
44
    all=All (ESS dan HR)
45
    -->
46
    <add key="PortType" value="ALL" />
47
    <!--End -fungsi untuk membedakan port  HR dan ESS-->
48
  
49
  </appSettings>
50
  <!--
51
    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
52

    
53
    The following attributes can be set on the <httpRuntime> tag.
54
      <system.Web>
55
        <httpRuntime targetFramework="4.5.1" />
56
      </system.Web>
57
  -->
58
  <system.web>
59
   <!-- <customErrors mode="Off" defaultRedirect="~/Home/Error" redirectMode="ResponseRewrite">
60
	
61
      <error statusCode="404" redirect="~/Home/Error" />
62
	  
63
    </customErrors>-->
64
	<!--add by Nana for SSL Secure-->
65
	<!-- <httpCookies requireSSL = "true" />
66
    <httpRuntime targetFramework="4.5.1" maxRequestLength="1048576" requestValidationMode="4.5" encoderType="System.Web.Security.AntiXss.AntiXssEncoder" enableVersionHeader="false" />
67
	 -->
68
	<httpRuntime targetFramework="4.5.1" maxRequestLength="1048576" requestValidationMode="4.5" encoderType="System.Web.Security.AntiXss.AntiXssEncoder" enableVersionHeader="false" />
69
    <compilation debug="true" targetFramework="4.5" />
70
    <authentication mode="Forms">
71
      <forms loginUrl="~/Account/Login" timeout="2880" />
72
    </authentication>
73
    <pages>
74
      <namespaces>
75
        <add namespace="System.Web.Helpers" />
76
        <add namespace="System.Web.Mvc" />
77
        <add namespace="System.Web.Mvc.Ajax" />
78
        <add namespace="System.Web.Mvc.Html" />
79
        <add namespace="System.Web.Routing" />
80
        <add namespace="System.Web.WebPages" />
81
      </namespaces>
82
    </pages>
83
    <httpModules>
84
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
85
    </httpModules>
86
    <!--add by atin for report viewer-->
87
    <httpHandlers>
88
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
89
    </httpHandlers>
90
        <globalization culture="en-US" />
91
    <!--add by atin for report viewer-->
92
  </system.web>
93

    
94
  <system.serviceModel>
95
    <bindings>
96
      <wsHttpBinding>
97
        <binding name="wsHttpWithNoSecurity" closeTimeout="00:025:00" openTimeout="00:025:00" receiveTimeout="00:025:00" sendTimeout="00:025:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8">
98
          <security mode="None" />
99
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
100
        </binding>
101
      </wsHttpBinding>
102
    </bindings>
103
    <behaviors>
104
      <endpointBehaviors>
105
        <behavior name="myClientBehavior">
106
        </behavior>
107
      </endpointBehaviors>
108
    </behaviors>
109
  </system.serviceModel>
110
  
111
  <system.webServer>
112
    <validation validateIntegratedModeConfiguration="false" />
113
	<!--
114
    <httpErrors errorMode="Custom">
115
	
116
      <remove statusCode="404" subStatusCode="-1"/>
117
      <error statusCode="403" subStatusCode="14" path="/Home/Error" responseMode="Redirect"/>
118
      <error statusCode="404" path="/Home/Error" responseMode="Redirect"/>
119
	  
120
    </httpErrors>
121
	-->
122
    <modules>
123
      <remove name="ApplicationInsightsWebTracking" />
124
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
125
    </modules>
126
    <staticContent>
127
    </staticContent>
128
    <handlers>
129
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
130
      <remove name="OPTIONSVerbHandler" />
131
      <remove name="TRACEVerbHandler" />
132
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
133
        <!--add by atin for report viewer-->
134
        <remove name="UrlRoutingHandler" />
135
        <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
136
      <!--end add by atin for report viewer-->
137
    </handlers>
138
        <security>
139
            <requestFiltering>
140
                <requestLimits maxAllowedContentLength="1000000000" maxUrl="900000000" maxQueryString="90000000" />
141
            </requestFiltering>
142
        </security>
143
		
144
	<!--add by Nana for Remove Respone Header-->
145
    <httpProtocol>
146
      <customHeaders>
147
        <remove name="X-Powered-By" />
148
		<!-- <add name="X-Frame-Options" value="ALLOW"/> -->
149
        <add name="X-XSS-Protection" value="1; mode=block" />
150
        <!-- <add name="X-Content-Type-Options" value="nosniff"/> -->
151
      </customHeaders>
152
    </httpProtocol>    
153
  </system.webServer>
154
   <system.web.extensions>
155
    <scripting>
156
      <webServices>
157
        <jsonSerialization maxJsonLength="2147483647"></jsonSerialization>
158
      </webServices>
159
    </scripting>
160
  </system.web.extensions>
161
  <runtime>
162
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
163
      <dependentAssembly>
164
        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
165
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
166
      </dependentAssembly>
167
      <dependentAssembly>
168
        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
169
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
170
      </dependentAssembly>
171
      <dependentAssembly>
172
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
173
        <bindingRedirect oldVersion="1.0.0.0-5.2.2.0" newVersion="5.2.2.0" />
174
      </dependentAssembly>
175
	  <dependentAssembly>
176
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
177
        <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
178
      </dependentAssembly>
179
    </assemblyBinding>
180
  </runtime>
181
</configuration>
(1-1/3)