mirror of
https://github.com/g3rv4/FakeRelay.git
synced 2024-11-21 23:03:07 +01:00
Fix container not running on odd distributions (like Unraid)
This is a fix I found on StackOverflow: https://stackoverflow.com/a/71399650/776118
This commit is contained in:
parent
c884146b40
commit
1c31507c19
@ -2,7 +2,12 @@ using FakeRelay.Core;
|
||||
using FakeRelay.Web.Services;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
var webApplicationOptions = new WebApplicationOptions
|
||||
{
|
||||
ContentRootPath = AppContext.BaseDirectory,
|
||||
Args = args,
|
||||
};
|
||||
var builder = WebApplication.CreateBuilder(webApplicationOptions);
|
||||
Config.Init(builder.Configuration.GetValue<string>("CONFIG_PATH"));
|
||||
|
||||
// Add services to the container.
|
||||
|
Loading…
Reference in New Issue
Block a user