mirror of
https://github.com/Megghy/MegghysAPI.git
synced 2025-12-06 14:16:56 +08:00
1
This commit is contained in:
@@ -58,7 +58,7 @@ namespace MegghysAPI
|
|||||||
public string ListenHost { get; set; } = "*";
|
public string ListenHost { get; set; } = "*";
|
||||||
public int ListenPort { get; set; } = 4050;
|
public int ListenPort { get; set; } = 4050;
|
||||||
public string DBConnectString { get; set; } = $"Host=localhost;Port=5432;Username=postgres;Password=!Hzy05152484; Database=MegghysAPI;";
|
public string DBConnectString { get; set; } = $"Host=localhost;Port=5432;Username=postgres;Password=!Hzy05152484; Database=MegghysAPI;";
|
||||||
public string MinIOEndpoint { get; set; } = "eternalland.top:9000";
|
public string MinIOEndpoint { get; set; } = "ddns.megghy.site:9000";
|
||||||
public string MinIOAccessKey { get; set; } = "RBzbElm21lf7sy7wK7wG";
|
public string MinIOAccessKey { get; set; } = "RBzbElm21lf7sy7wK7wG";
|
||||||
public string MinIOSecretKey { get; set; } = "Nko5azOSUiYgOUeLsj8hLxGz4cKC8XOcH0VS7lWq";
|
public string MinIOSecretKey { get; set; } = "Nko5azOSUiYgOUeLsj8hLxGz4cKC8XOcH0VS7lWq";
|
||||||
public string MinIORegion { get; set; } = "cn-main";
|
public string MinIORegion { get; set; } = "cn-main";
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ using AntDesign;
|
|||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
|
||||||
// Add services to the container.
|
// Add services to the container.
|
||||||
builder.Services.AddRazorComponents()
|
builder.Services.AddRazorComponents()
|
||||||
.AddInteractiveServerComponents();
|
.AddInteractiveServerComponents();
|
||||||
@@ -80,4 +81,4 @@ foreach (var method in inits)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
app.Run();
|
app.Run($"http://{Config.Instance.ListenHost}:{Config.Instance.ListenPort}");
|
||||||
|
|||||||
Reference in New Issue
Block a user