You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.4 KiB
33 lines
1.4 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<appSettings>
|
|
<!-- Hangfire Dashboard 配置 -->
|
|
<add key="Hangfire:DashboardPath" value="/hangfire" />
|
|
<add key="Hangfire:RequireAuthorization" value="true" />
|
|
|
|
<!-- Hangfire 服务器配置 -->
|
|
<add key="Hangfire:WorkerCount" value="5" />
|
|
<add key="Hangfire:Queues" value="default,critical,background" />
|
|
<add key="Hangfire:Url" value="http://localhost:5888" />
|
|
|
|
<!-- Hangfire 存储配置 -->
|
|
|
|
<add key="Hangfire:Storage:Type" value="SqlServer" />
|
|
<add key="Hangfire:Storage:ConnectionString" value="Server=127.0.0.1;Database=HANGFIRE;User ID=sa;Password=1;TrustServerCertificate=True" />
|
|
</appSettings>
|
|
|
|
<connectionStrings>
|
|
<!-- 也可以使用 connectionStrings 节点存储连接字符串 -->
|
|
<add name="HangfireDb" connectionString="Server=127.0.0.1;Database=HANGFIRE;User ID=sa;Password=1;TrustServerCertificate=True" providerName="System.Data.SqlClient" />
|
|
</connectionStrings>
|
|
|
|
<!-- 程序集绑定重定向 -->
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
</configuration>
|