diff --git a/.github/workflows/arm32.yml b/.github/workflows/arm32.yml
index 69599b24..ef5a465e 100644
--- a/.github/workflows/arm32.yml
+++ b/.github/workflows/arm32.yml
@@ -37,11 +37,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Setup .NET Core
- uses: actions/setup-dotnet@v1
+ - uses: actions/checkout@v4
+ - name: setup .net
+ uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.*
+ dotnet-version: |
+ 8.0.x
+ 9.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
diff --git a/.github/workflows/arm64.yml b/.github/workflows/arm64.yml
index ac66142d..809d5bab 100644
--- a/.github/workflows/arm64.yml
+++ b/.github/workflows/arm64.yml
@@ -37,11 +37,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Setup .NET Core
- uses: actions/setup-dotnet@v1
+ - uses: actions/checkout@v4
+ - name: setup .net
+ uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.*
+ dotnet-version: |
+ 8.0.x
+ 9.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
diff --git a/.github/workflows/master-ci.yml b/.github/workflows/master-ci.yml
index f5e144c8..7c5036ba 100644
--- a/.github/workflows/master-ci.yml
+++ b/.github/workflows/master-ci.yml
@@ -28,11 +28,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - name: Setup .NET
- uses: actions/setup-dotnet@v3
+ - uses: actions/checkout@v4
+ - name: setup .net
+ uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.x
+ dotnet-version: |
+ 8.0.x
+ 9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
diff --git a/.github/workflows/master-pr-ci.yml b/.github/workflows/master-pr-ci.yml
index 094c296d..bef13642 100644
--- a/.github/workflows/master-pr-ci.yml
+++ b/.github/workflows/master-pr-ci.yml
@@ -28,11 +28,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - name: Setup .NET
- uses: actions/setup-dotnet@v3
+ - uses: actions/checkout@v4
+ - name: setup .net
+ uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.x
+ dotnet-version: |
+ 8.0.x
+ 9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
diff --git a/.github/workflows/mysqlconnector.yml b/.github/workflows/mysqlconnector.yml
index 69ae6873..4aeeb255 100644
--- a/.github/workflows/mysqlconnector.yml
+++ b/.github/workflows/mysqlconnector.yml
@@ -37,11 +37,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Setup .NET Core
- uses: actions/setup-dotnet@v1
+ - uses: actions/checkout@v4
+ - name: setup .net
+ uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.*
+ dotnet-version: |
+ 8.0.x
+ 9.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index e297c2f8..30cd44dc 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -36,11 +36,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Setup .NET Core
- uses: actions/setup-dotnet@v1
+ - uses: actions/checkout@v4
+ - name: setup .net
+ uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.*
+ dotnet-version: |
+ 8.0.x
+ 9.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
diff --git a/.github/workflows/release-xxx.yml b/.github/workflows/release-xxx.yml
index 06a0e206..24f242f2 100644
--- a/.github/workflows/release-xxx.yml
+++ b/.github/workflows/release-xxx.yml
@@ -36,11 +36,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Setup .NET Core
- uses: actions/setup-dotnet@v1
+ - uses: actions/checkout@v4
+ - name: setup .net
+ uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.*
+ dotnet-version: |
+ 8.0.x
+ 9.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
diff --git a/.github/workflows/test-cd.yml b/.github/workflows/test-cd.yml
index 3e196d83..8bf340a3 100644
--- a/.github/workflows/test-cd.yml
+++ b/.github/workflows/test-cd.yml
@@ -38,11 +38,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Setup .NET Core
- uses: actions/setup-dotnet@v1
+ - uses: actions/checkout@v4
+ - name: setup .net
+ uses: actions/setup-dotnet@v4
with:
- dotnet-version: 8.0.*
+ dotnet-version: |
+ 8.0.x
+ 9.0.x
- name: Install dependencies
run: dotnet restore
diff --git a/src/AgileConfig.Server.Apisite/ASCII_FONT.cs b/src/AgileConfig.Server.Apisite/ASCII_FONT.cs
new file mode 100644
index 00000000..84acf3d9
--- /dev/null
+++ b/src/AgileConfig.Server.Apisite/ASCII_FONT.cs
@@ -0,0 +1,9 @@
+using Figgle;
+
+namespace AgileConfig.Server.Apisite
+{
+ [EmbedFiggleFont(memberName: "Font", fontName: "ogre")]
+ internal static partial class ASCII_FONT
+ {
+ }
+}
diff --git a/src/AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj b/src/AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj
index 19e42719..630d0970 100644
--- a/src/AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj
+++ b/src/AgileConfig.Server.Apisite/AgileConfig.Server.Apisite.csproj
@@ -3,11 +3,11 @@
net8.0
InProcess
- 1.9.13
- 1.9.13
- 1.9.13
+ 1.9.14
+ 1.9.14
+ 1.9.14
Linux
- 1.9.13
+ 1.9.14
kklldog
kklldog
@@ -41,6 +41,8 @@
+
+
diff --git a/src/AgileConfig.Server.Apisite/Program.cs b/src/AgileConfig.Server.Apisite/Program.cs
index cc7001b3..9d3395ca 100644
--- a/src/AgileConfig.Server.Apisite/Program.cs
+++ b/src/AgileConfig.Server.Apisite/Program.cs
@@ -1,12 +1,13 @@
-using System;
-using AgileConfig.Server.Common;
+using AgileConfig.Server.Common;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
-using OpenTelemetry.Resources;
-using OpenTelemetry.Logs;
using OpenTelemetry.Exporter;
+using OpenTelemetry.Logs;
+using OpenTelemetry.Resources;
+using System;
+using System.Reflection;
namespace AgileConfig.Server.Apisite
{
@@ -16,10 +17,10 @@ public class Program
public static void Main(string[] args)
{
- var basePath = AppDomain.CurrentDomain.BaseDirectory;
- Console.WriteLine("current dir path: " + basePath);
+ PrintBasicSysInfo();
+
var builder = new ConfigurationBuilder()
- .SetBasePath(basePath);
+ .SetBasePath(AppDomain.CurrentDomain.BaseDirectory);
#if DEBUG
Global.Config =
builder
@@ -36,6 +37,16 @@ public static void Main(string[] args)
host.Run();
}
+ private static void PrintBasicSysInfo()
+ {
+ var appVer = Assembly.GetAssembly(typeof(Program))?.GetName()?.Version?.ToString();
+ var basePath = AppDomain.CurrentDomain.BaseDirectory;
+
+ Console.WriteLine(ASCII_FONT.Font.Render($"Agile Config"));
+ Console.WriteLine("Version: {0}", appVer);
+ Console.WriteLine("Path: {0}", basePath);
+ }
+
private static IWebHostBuilder CreateWebHostBuilder(string[] args)
{
return WebHost.CreateDefaultBuilder(args).ConfigureLogging(
@@ -67,7 +78,7 @@ private static void AddOtlpLogging(ILoggingBuilder builder)
expOp.Endpoint = new Uri(Appsettings.OtlpLogsEndpoint);
if (!string.IsNullOrEmpty(Appsettings.OtlpLogsHeaders))
{
- expOp.Headers = Appsettings.OtlpLogsHeaders;
+ expOp.Headers = Appsettings.OtlpLogsHeaders;
}
});
});
diff --git a/src/AgileConfig.Server.Apisite/appsettings.Development.json b/src/AgileConfig.Server.Apisite/appsettings.Development.json
index 33aee0a9..81059228 100644
--- a/src/AgileConfig.Server.Apisite/appsettings.Development.json
+++ b/src/AgileConfig.Server.Apisite/appsettings.Development.json
@@ -30,7 +30,7 @@
"serviceUnhealthInterval": 30, // 判断服务不健康的间隔,超出这个时间没响应过则认为不健康,单位:秒
"removeServiceInterval": 0, // 如果一个服务超出这个时间没有响应,则直接移除这个服务,单位:秒;如果设定为 <= 0,则不会移除,默认 0 。
"pathBase": "", //使用反向代理的时候,或许需要修改这个值 /xxx 必须/开头
- "adminConsole": false,
+ "adminConsole": true,
"saPassword": "123456", //super admin 的密码
"defaultApp": "myapp", // 默认应用,每次重启都会尝试新建
"cluster": false, // 集群模式:服务启动后自动加入节点列表,服务启动的时候会获取容器的ip,端口默认5000,适合 docker compose 环境使用
@@ -45,7 +45,7 @@
//"provider": "oracle",
//"conn": "user id=x;password=x;data source=192.168.0.123/orcl"
//"provider": "mysql",
- //"conn": "Database=agile_config;Data Source=192.168.0.125;User Id=root;Password=x;port=13306;Allow User Variables=true;",
+ //"conn": "Database=agileconfig;Data Source=192.168.0.125;User Id=root;Password=123456;port=3306;Allow User Variables=true;",
//"provider": "mongodb",
//"conn": "mongodb://192.168.0.125:27017/agile_config_1",
"env": {