feat(artalk): 部署 Artalk 2.10.0 评论服务并入库接入草稿

- 容器 artalk/artalk-go:2.10.0 仅绑 127.0.0.1:13030,sqlite 落实例卷
- 子路径 /artalk 经 proxy_pass 尾斜杠剥前缀(官方无 base path 模式),
  nginx 草稿为 location 片段,合并主域 vhost 后需实测 sidebar 内页跳转
- 凭据不进 git:初始密码移实例目录 INITIAL-CREDENTIALS.txt(0600),
  仓库 README 仅留指引(本仓库将公开)

验证: curl -sf http://127.0.0.1:13030/api/v2/conf 返回 2.10.0 JSON;
      docker inspect artalk = running;管理员 wait4xx 经 sqlite 查证落库

Co-authored-by: GLM-5.3
This commit is contained in:
wait4xandGLM-5.3 committed 2026-10-24 22:00:57 +08:00
1 parent d8f5ecfbf5
commit aea11469e3
5 files changed
+103 -1

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
# Artalk 配置模板(与官方镜像 -w / -c /data/artalk.yml 启动方式配套,数据路径须为 /data 绝对路径)
# 部署实例真身:~/docker_apps/artalk/data/artalk.yml(app_key 已生成,勿将真实密钥提交入库)
host: "0.0.0.0"
port: 23366
# 会话与内容加密密钥,部署时用 `openssl rand -hex 24` 生成;泄漏须更换
app_key: "<openssl rand -hex 24 生成>"
debug: false
locale: zh-CN
timezone: Asia/Shanghai
# 站点名与站点地址同填域名,前端 Artalk.init({ site: 'wait4x.online' })
site_default: wait4x.online
site_url: https://wait4x.online
db:
type: sqlite
file: /data/artalk.db
http:
# 经 nginx 反代后从 X-Forwarded-For 取访客真实 IP
proxy_header: X-Forwarded-For
log:
enabled: true
filename: /data/artalk.log
# 前端页面域名(CORS 白名单;site_url 会自动加入)
trusted_domains:
- https://wait4x.online
admin_users: []