feat(dotnet): added in wrapper so we could run in iis for ssl :D

This commit is contained in:
2025-06-16 18:27:42 -05:00
parent c72b4d3261
commit 84aacd5b71
10 changed files with 137 additions and 8 deletions

26
dotnetwrapper/Program.cs Normal file
View File

@@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllersWithViews();
var app = builder.Build();
// Configure the HTTP request pipeline.
// if (!app.Environment.IsDevelopment())
// {
// // app.UseExceptionHandler("/Home/Error");
// // app.UseHsts();
// }
// app.UseHttpsRedirection(); // to force https
app.UseStaticFiles();
app.UseRouting();
app.MapFallbackToFile("index.html");
app.Run();