diff --git a/src/CoreCms.Net.Web.Admin/Dockerfile b/src/CoreCms.Net.Web.Admin/Dockerfile index fa479e6..ccd5a3e 100644 --- a/src/CoreCms.Net.Web.Admin/Dockerfile +++ b/src/CoreCms.Net.Web.Admin/Dockerfile @@ -4,7 +4,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base USER $APP_UID WORKDIR /app -EXPOSE 8080 +EXPOSE 80 # 此阶段用于生成服务项目 diff --git a/src/CoreCms.Net.Web.Admin/appsettings.json b/src/CoreCms.Net.Web.Admin/appsettings.json index daf30a3..bfdc1ea 100644 --- a/src/CoreCms.Net.Web.Admin/appsettings.json +++ b/src/CoreCms.Net.Web.Admin/appsettings.json @@ -167,5 +167,13 @@ "WxOpenAppSecret": "", "WxOpenToken": "", "WxOpenEncodingAESKey": "" + }, + //服务器配置 + "Kestrel": { + "Endpoints": { + "Http": { + "Url": "http://*:80" + } + } } } \ No newline at end of file diff --git a/src/CoreCms.Net.Web.WebApi/Dockerfile b/src/CoreCms.Net.Web.WebApi/Dockerfile index ec272ff..01a05d8 100644 --- a/src/CoreCms.Net.Web.WebApi/Dockerfile +++ b/src/CoreCms.Net.Web.WebApi/Dockerfile @@ -4,7 +4,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base USER $APP_UID WORKDIR /app -EXPOSE 8080 +EXPOSE 80 # 此阶段用于生成服务项目 diff --git a/src/CoreCms.Net.Web.WebApi/appsettings.json b/src/CoreCms.Net.Web.WebApi/appsettings.json index c284131..ea3c6f7 100644 --- a/src/CoreCms.Net.Web.WebApi/appsettings.json +++ b/src/CoreCms.Net.Web.WebApi/appsettings.json @@ -173,5 +173,13 @@ "WxOpenAppSecret": "f042145475d722eadcac3ccd9abc538e", "WxOpenToken": "", "WxOpenEncodingAESKey": "" + }, + //服务器配置 + "Kestrel": { + "Endpoints": { + "Http": { + "Url": "http://*:80" + } + } } } \ No newline at end of file