Skip to content

Commit 22d2c8b

Browse files
committed
#add base url
1 parent 87b5a33 commit 22d2c8b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/LinCms.Web/Startup/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
await app.Services.RunScopeClientPolicy();
7575
app.Services.RunFreeSqlSyncStructure();
7676

77+
string vPath = builder.Configuration.GetValue<string>("ASPNETCORE_PATHBASE") ?? "";
78+
app.UsePathBase(new PathString(vPath));
79+
7780
app
7881
.UseForwardedHeaders()
7982
.UseBasicAuthentication()

src/LinCms.Web/appsettings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"ASPNETCORE_PATHBASE": "/lincms_api",
23
"ConnectionStrings": {
34
"DefaultDB": "0",
45
"DataType": {

0 commit comments

Comments
 (0)