1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?xml version="1.0" encoding="utf-8"?>
- <configuration>
- <configSections>
- <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
- <section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" />
- <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
- </configSections>
- <connectionStrings>
- <add name="DefaultConnection" connectionString="data source=172.1.0.142\SQLEXPRESS;initial catalog=Evcb_formal;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
- <!--<add name="DefaultConnection" connectionString="data source=localhost\SQL2016;initial catalog=Evcb;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
- <!-- <add name="DefaultConnection" connectionString="data source=localhost\SQL2016;initial catalog=Evcb;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" /> -->
- <!-- <add name="DefaultConnection" connectionString="Data Source=localhost;Integrated Security=SSPI;Initial Catalog=Evcb" providerName="System.Data.SqlClient" /> -->
- </connectionStrings>
- <startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
- </startup>
- <entityFramework>
- <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
- <parameters>
- <parameter value="mssqllocaldb" />
- </parameters>
- </defaultConnectionFactory>
- <providers>
- <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
- </providers>
- </entityFramework>
- <superSocket>
- <servers>
- <server name="SuperWebSocket" serverTypeName="SuperWebSocket">
- <!-- <certificate filePath="localhost.pfx" password="supersocket" storeName="My" thumbprint="f42585bceed2cb049ef4a3c6d0ad572a6699f6f3" storeLocation="LocalMachine" clientCertificateRequired="false" keyStorageFlags="Exportable"></certificate> -->
- <certificate filePath="certificate.pfx" password="y42j/4cj84" storeName="My" thumbprint="f115742946884724c07cd507564daa12dac89615" storeLocation="LocalMachine" clientCertificateRequired="false" keyStorageFlags="Exportable"></certificate>
- <listeners>
- </listeners>
- </server>
- </servers>
- <serverTypes>
- <add name="SuperWebSocket" type="SuperWebSocket.WebSocketServer, SuperWebSocket" />
- </serverTypes>
- </superSocket>
- <appSettings>
- <add key="ServerIp" value="172.17.40.13" />
- <add key="ServerPort" value="8080" />
- <add key="WSSServerPort" value="2013" />
- <add key="ServerSecurity" value="tls" />
- <add key="MaxRequestLength" value="3500" />
- <!--<add key="ServerIp" value="127.0.0.1" />-->
- <!--<add key="ServerPort" value="9999" />-->
- <!--<add key="Customer" value="Phihong" />-->
- <!-- 是否轉換socket 0:不要、1:要 -->
- <add key="Redirect" value="0" />
- <add key="ApiUrl" value="http://172.18.61.97:58612/api/ChargerService/" />
- <!--<add key="ApiUrl" value="http://172.1.2.186/FoxconnWeb/api/ChargerService/" />-->
- <add key="ClientSettingsProvider.ServiceUri" value="" />
- <!-- 設定電樁連線數量資訊 (mac,limit,Signature 三組資料會作組合比對,切勿隨意修改)-->
- <!-- Server Mac-->
- <add key="mac" value="94-E9-79-91-A5-9A" />
- <!-- 可連線數量 ∞ :無限制數量 -->
- <add key="limit" value="∞" />
- <!-- 為從 mac.limit 組合,計算出來的加密簽章 -->
- <add key="Signature" value="2CVsI2YqXEG5zFxq1LbWH/8NuNCe3ItVyaOa4wUirdY=" />
- <!-- 以上設定電樁連線數量資訊-->
- <!-- 是否要記錄MachineConnectionLog 0:不要、1:要 -->
- <add key="EnableMachineConnectionLog" value="1" />
- <!-- 是否要將Machinelog、chargingRecordStatus轉移到mongodb ,若使用mssql 不能使用chargingRecordStatus trigger-->
- <!--<add key="mongoDb" value="null" />-->
- <!--mongodb connection example: mongodb://172.1.2.194:27017-->
- <add key="mongoCon" value="" />
- </appSettings>
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.1.1.2" newVersion="4.1.1.2" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
- </dependentAssembly>
- </assemblyBinding>
- </runtime>
- </configuration>
|