From 8df8b24043cdebc8ccacf3ca51578a7cbafaebd2 Mon Sep 17 00:00:00 2001 From: ogt Date: Mon, 20 Apr 2026 22:45:36 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=B0=E5=A2=9E=20ALERT=5FWEBHOOK=5F?= =?UTF-8?q?PASSWORD=20=E5=92=8C=20GITLAB=5FTOKEN=20=E5=88=B0=20.env.exampl?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 Alert Webhook 認證設定範例 - 新增 GitLab CI/CD API token 設定範例 - 解決啟動時的環境變數警告 --- .env.example | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.env.example b/.env.example index 3fe6a77..1a48421 100644 --- a/.env.example +++ b/.env.example @@ -38,6 +38,21 @@ EMAIL_RECEIVER=receiver_email@gmail.com PUBLIC_URL=http://your_server_ip:port NGROK_AUTH_TOKEN=your_ngrok_auth_token +# ========================================== +# 通訊模組設定(從環境變數讀取) +# ========================================== + +# --- Alert Webhook --- +ALERT_WEBHOOK_USER=alertmanager +ALERT_WEBHOOK_PASSWORD=your_secure_webhook_password_here + +# --- GitLab CI/CD --- +GITLAB_URL=http://192.168.0.110:8929 +GITLAB_TOKEN=your_gitlab_token_here +GITLAB_PROJECT_ID=1 + +# --- Telegram Bot --- + # ========================================== # HTTPS 設定(生產環境) # ==========================================