466 changed files with 215609 additions and 2946 deletions

No files matched your search

+10 -4
View File
@@ -44,15 +44,15 @@ Cache__AnalyticsExpirationMinutes=3
Cache__AnalyticsLocalExpirationSeconds=30 Cache__AnalyticsLocalExpirationSeconds=30
Cache__MaximumPayloadKilobytes=2048 Cache__MaximumPayloadKilobytes=2048
# OpenTelemetry 默认收集 HTTP、运行时和数据库指标;配置 OTLP 地址后才会外发。 # 应用日志建立接口与慢 SQL 基线;日志系统可按 DurationMs、RequestId、QueryName 聚合。
Observability__Enabled=true Observability__Enabled=true
Observability__ServiceName=jiaowu-api Observability__ServiceName=jiaowu-api
Observability__LogAllApiRequests=true
Observability__SlowRequestThresholdMilliseconds=1000
Observability__SlowQueryThresholdMilliseconds=500 Observability__SlowQueryThresholdMilliseconds=500
# 默认不记录完整 SQL,避免日志或追踪系统接触业务数据。 # 默认不记录完整 SQL,避免日志或追踪系统接触业务数据。
Observability__IncludeSqlText=false Observability__IncludeSqlText=false
Observability__MaximumSqlTextLength=2000 Observability__MaximumSqlTextLength=2000
# OTEL_EXPORTER_OTLP_ENDPOINT=https://otel-collector.example.edu.cn:4317
# OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer%20REPLACE_WITH_TOKEN
# 系统内“运维与审计 → 系统性能”从 Prometheus 只读查询汇总指标。 # 系统内“运维与审计 → 系统性能”从 Prometheus 只读查询汇总指标。
PerformanceReporting__Enabled=false PerformanceReporting__Enabled=false
@@ -84,6 +84,12 @@ Operations__MySqlClientPath=mysql
# Operations__MySqlAdditionalArguments__0=--ssl-mode=VERIFY_IDENTITY # Operations__MySqlAdditionalArguments__0=--ssl-mode=VERIFY_IDENTITY
# Operations__MySqlAdditionalArguments__1=--ssl-ca=/etc/jiaowu/mysql-ca.pem # Operations__MySqlAdditionalArguments__1=--ssl-ca=/etc/jiaowu/mysql-ca.pem
# 签名插件包存储目录必须持久化,并仅允许服务账号写入。发布者公钥使用 RSA PEM。
Plugins__StoragePath=/var/lib/jiaowu/plugins
Plugins__MaximumPackageMegabytes=20
# Plugins__TrustedPublishers__0__Id=school-it
# Plugins__TrustedPublishers__0__PublicKeyPath=/etc/jiaowu/plugin-publishers/school-it-public.pem
Jwt__Issuer=Jiaowu.Api Jwt__Issuer=Jiaowu.Api
Jwt__Audience=Jiaowu.Web Jwt__Audience=Jiaowu.Web
Jwt__Key=REPLACE_WITH_AT_LEAST_32_RANDOM_BYTES Jwt__Key=REPLACE_WITH_AT_LEAST_32_RANDOM_BYTES
@@ -114,8 +120,8 @@ Cors__Origins__1=capacitor://localhost
Cors__Origins__2=https://localhost Cors__Origins__2=https://localhost
Cors__Origins__3=http://localhost Cors__Origins__3=http://localhost
# 学校与平台名称统一在 src/Jiaowu.Api/appsettings.json 的 Branding 节配置。
# 二维码使用的公网根地址;反向代理部署时必须填写最终 HTTPS 地址。 # 二维码使用的公网根地址;反向代理部署时必须填写最终 HTTPS 地址。
OfficialDocuments__InstitutionName=明序大学
OfficialDocuments__IssuingOffice=教务处 OfficialDocuments__IssuingOffice=教务处
OfficialDocuments__DocumentNumberPrefix=MXU OfficialDocuments__DocumentNumberPrefix=MXU
OfficialDocuments__PublicBaseUrl=https://jiaowu.example.edu.cn OfficialDocuments__PublicBaseUrl=https://jiaowu.example.edu.cn
+12 -4
View File
@@ -28,10 +28,13 @@ jobs:
- name: Check out repository - name: Check out repository
uses: https://github.com/actions/checkout@v4 uses: https://github.com/actions/checkout@v4
- name: Initialize CaptchaKit submodule
run: git submodule update --init --recursive packages/CaptchaKit
- name: Set up .NET - name: Set up .NET
uses: https://github.com/actions/setup-dotnet@v4 uses: https://github.com/actions/setup-dotnet@v4
with: with:
dotnet-version: "10.0.302" dotnet-version: "10.0.400"
- name: Set up Node.js - name: Set up Node.js
uses: https://github.com/actions/setup-node@v4 uses: https://github.com/actions/setup-node@v4
@@ -46,6 +49,11 @@ jobs:
npm ci npm ci
npm run build npm run build
- name: Install Chinese PDF font for backend tests
run: |
sudo apt-get update
sudo apt-get install --yes fonts-noto-cjk
- name: Run backend tests - name: Run backend tests
run: dotnet test Jiaowu.slnx --configuration Release run: dotnet test Jiaowu.slnx --configuration Release
@@ -73,7 +81,7 @@ jobs:
echo "version=$version" >> "$GITHUB_OUTPUT" echo "version=$version" >> "$GITHUB_OUTPUT"
echo "profile=$profile" >> "$GITHUB_OUTPUT" echo "profile=$profile" >> "$GITHUB_OUTPUT"
- name: Build self-contained platform packages - name: Build framework-dependent platform packages
shell: bash shell: bash
run: | run: |
bash ./scripts/publish-platform-packages.sh \ bash ./scripts/publish-platform-packages.sh \
@@ -150,12 +158,12 @@ jobs:
files: | files: |
artifacts/packages/* artifacts/packages/*
body: | body: |
已发布大学教务管理系统 ${{ gitea.ref_name }}: 已发布校园综合服务平台 ${{ gitea.ref_name }}:
- Windows x64:`.zip` - Windows x64:`.zip`
- Linux x64 / ARM64:`.tar.gz` - Linux x64 / ARM64:`.tar.gz`
- `SHA256SUMS`:发布包校验值 - `SHA256SUMS`:发布包校验值
- 自包含程序包无需预装 .NET 或 ASP.NET Core Runtime - 二进制程序包不包含 .NET 或 ASP.NET Core Runtime;请先安装匹配版本的 ASP.NET Core Runtime
Windows ARM64 与 macOS Intel / Apple Silicon 包可通过手动运行工作流并启用扩展平台生成。 Windows ARM64 与 macOS Intel / Apple Silicon 包可通过手动运行工作流并启用扩展平台生成。
+3 -1
View File
@@ -3,6 +3,8 @@
**/node_modules/ **/node_modules/
**/dist/ **/dist/
.artifacts/ .artifacts/
.codex-build/
packages/CaptchaKit/artifacts/
.vs/ .vs/
.vscode/ .vscode/
*.user *.user
@@ -17,4 +19,4 @@ src/Jiaowu.Api/wwwroot/
!.env.example !.env.example
!.env.docker.example !.env.docker.example
certs/ certs/
publish/ publish/
Loaded 3 of 466 files, more files were not shown because too many files have changed in this diff. Show more