未設時讀 config.env(行為不變);設了讀 config.<profile>.env。 .gitignore 新增 config.*.env 但保留 config.example.env。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
19 lines
616 B
Bash
19 lines
616 B
Bash
# 複製此檔為 config.env 後填入實際值
|
||
# cp config.example.env config.env
|
||
#
|
||
# 多組 Gitea 站/帳號:另存為 config.<profile>.env,
|
||
# 執行腳本時帶 GITEA_PROFILE=<profile> 切換。例如:
|
||
# cp config.example.env config.work.env # 編輯後
|
||
# GITEA_PROFILE=work bash scripts/list.sh
|
||
|
||
# Gitea 站台網址(不要結尾 /)
|
||
GITEA_URL=http://your-gitea.example.com:3000
|
||
|
||
# Gitea 使用者名稱
|
||
GITEA_USER=your-username
|
||
|
||
# Gitea personal access token
|
||
# 產生位置: <GITEA_URL>/-/user/settings/applications
|
||
# 權限勾選: write:repository
|
||
GITEA_TOKEN=請貼上你的_access_token
|