update:添加systemd支持
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace QRCodeService.Models
|
||||
{
|
||||
public class GetQRCodeModel:CheckSignModel
|
||||
{
|
||||
public string ShortCode { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@ namespace QRCodeService
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.UseSerilog()
|
||||
.UseSystemd()
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
webBuilder.UseStartup<Startup>();
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="5.0.1" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.9" />
|
||||
<PackageReference Include="MySqlConnector" Version="1.1.0" />
|
||||
<PackageReference Include="QRCoder" Version="1.4.1" />
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{
|
||||
"Hosting": {
|
||||
"BaseUrl": "http://qrcode.bobandjuly.cyou/",
|
||||
"BaseUrl": "https://dwz.nbjs.gov.cn/",
|
||||
"IsForwarded": true
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"Default": "server=localhost;user=kuanyi;password=passwd;database=qrcode"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user