Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Mist Webhook

Mist SystemsからのWebhookを受信しSlackに通知する example1 example2 example3

環境変数

  • SLACK_WEBHOOK_URL: Slack Incoming Webhook URL。複数指定する場合はカンマ区切りで指定可能
    • 例: https://hooks.slack.com/services/XXX,https://hooks.slack.com/services/YYY
  • PORT: サーバの待ち受けポート (デフォルト: 5000)
  • MIST_API_TOKEN: Mist APIトークン (任意)

ディレクトリ構成

  • cmd/mist-webhook/: アプリケーションのエントリーポイント (main.go)
  • internal/webhook/: Webhook処理のコアロジック
  • Dockerfile: コンテナビルド設定
  • docker-compose.yml: ローカル実行およびデプロイ用設定
  • Makefile: ビルドや実行を自動化するためのコマンド定義

実行方法 (Makefile)

  • ビルド:
    make build
  • ローカル実行:
    make run
  • Dockerイメージのビルド:
    make docker-build

Docker Compose での実行

Makefile にコマンドを用意しています。

  1. .env を作成。

  2. 起動:

make up
  1. 停止:
make down

ログ:

make logs

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages