mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
18 lines
545 B
C#
18 lines
545 B
C#
using DorkNet.Server.Startup;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
// Personal/local-machine override layer. Loaded last so it wins over both
|
|
// appsettings.json and appsettings.{Environment}.json. Gitignored; use this
|
|
// for Photon AppId, JWT secret, and anything you don't want committed.
|
|
builder.Configuration.AddJsonFile("appsettings.Local.json",
|
|
optional: true, reloadOnChange: true);
|
|
|
|
builder.AddDorkNetServices();
|
|
|
|
var app = builder.Build();
|
|
|
|
await app.RunDatabaseBootstrapAsync();
|
|
app.UseDorkNetPipeline();
|
|
app.Run();
|