SHA256
forked from course-team/tjhlp-gitea
feat: Issue 模板引导链接改指课程官网, 平台地址改由 public_url 注入
- 两个 config.yaml 的 contact_links 从 example.com 换成真实入口:
官网《学会提问》/ 课程官网 / 平台提问速查, 让答疑平台与官网互相导流
- 模板支持 {{BASE_URL}}/{{ORG}}/{{REPO}} 占位符, 推送时替换,
换学期建新组织不用改模板; 未配置时保留占位符并告警而不是推坏链接
- scripts: 新增 gitea.public_url(对外地址, 与 CLI 用的 url 区分),
utils.web_base_url()/render_template_placeholders() 及单元测试
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
[default.gitea]
|
||||
url = "https://cpp.tongji.sh:3000"
|
||||
# 同学实际访问的平台地址(Apache 反代 /QA -> 127.0.0.1:2080)。
|
||||
# 用于 Issue Template 等面向用户的链接; url 只用于 CLI 调 API。
|
||||
public_url = "https://cpp.tongji.sh/QA"
|
||||
email_domain = "tongji.edu.cn"
|
||||
default_org = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user