Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
CoreMatch
HA-WebUI-SDKHandler
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
HA-WebUI-SDKHandler
/
config.example.yaml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
45 lines (39 loc) · 2.25 KB
main
Breadcrumbs
HA-WebUI-SDKHandler
/
config.example.yaml
Copy path
Top
File metadata and controls
Code
Blame
45 lines (39 loc) · 2.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Armorial WebUI SDK Handler 配置示例
# 复制为 config.yaml 并按实际环境修改。
#
# 职责:从 Armorial 主服务轮询拉取 SDK 源码头包,全量注入前端模板,
# 聚合生成静态前端并编译,成功后发布到固定产物目录。
# 配置文件版本号(与代码 ConfigVersion 一致;缺失会触发迁移与备份)。
version: "4"
server:
listen_addr: ":2704"
maintenance_addr: ":2705" # 维护端口,支持立即拉取模板等运维操作
# Armorial 主服务连接(唯一 SDK 来源,绝不直接访问卫星服务)
hrpauth:
base_url: "http://127.0.0.1:2778"
client_id: "" # 必填:OAuth2 Client ID
client_secret: "" # 必填:OAuth2 Client Secret
poll_interval_seconds: 60
# Internal Key:主程序(Armorial)调用本服务 /api/* 接口时必须携带的请求头
# X-Internal-Key 的值。组织统一约定;与 Armorial 侧配置保持一致。
# 留空 = fail-closed:/api/* 一律返回 401(/health 不受影响)。
# compose 部署对应环境变量:SDKHANDLER_INTERNAL_KEY。
internal_key: ""
build:
# 前端模板仓库路径(只读,每次构建全量复制)。例如 HRPAuth-Web 仓库位置:
template_dir: "./HRPAuth-WebUI"
# 如果 template_dir 为空或不存在,自动从该 Git 仓库拉取:
template_git_url: "https://github.com/CoreMatch/HRPAuth-WebUI.git"
work_dir: "./frontend-build" # 每次构建的工作目录(会反复重建)
artifacts_dir: "./artifacts" # 带版本号的产物根目录
current_link: "./current" # 当前生效产物的指针(symlink)
npm_command: "npm"
# npm 黑名单:精确包名,依赖合并时命中任一包名则本次构建直接失败。
# 无论 run_scripts 如何,命中黑名单即拒绝。
npm_blacklist: []
ignore_scripts_default: true # 默认以 --ignore-scripts 安装,包声明 run_scripts:true 除外
template_poll_interval_seconds: 0 # 自动拉取模板的时间间隔(秒),0 表示不自动拉取
state_dir: "./state"
# 是否由本服务静态托管 current_link 产物(GET / 与静态文件)。
# 默认 false:当前阶段只提供 API,前端产物由其他 Web 服务器托管。
serve_artifacts: false
You can’t perform that action at this time.