Initial import with modified Dockerfile for env-based config generation
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# Gitea Notification Hub Configuration
|
||||
|
||||
server:
|
||||
port: 8080
|
||||
# Gitea webhook secret - use environment variable in production
|
||||
webhook_secret: "${GITEA_WEBHOOK_SECRET}"
|
||||
|
||||
identity:
|
||||
provider: gitea
|
||||
cache_ttl: 24h
|
||||
gitea:
|
||||
# Gitea server URL (without trailing slash)
|
||||
url: "${GITEA_URL}"
|
||||
# Gitea API token for user lookup (needs read:user scope)
|
||||
token: "${GITEA_API_TOKEN}"
|
||||
|
||||
notification:
|
||||
provider: slack
|
||||
slack:
|
||||
# Slack Bot OAuth Token (xoxb-...) - use environment variable
|
||||
bot_token: "${SLACK_BOT_TOKEN}"
|
||||
# Default channel for notifications (fallback)
|
||||
default_channel: "#gitea-notifications"
|
||||
|
||||
database:
|
||||
# Database driver: sqlite or postgres
|
||||
driver: sqlite
|
||||
# SQLite: file path, PostgreSQL: connection string
|
||||
dsn: "./data/notifications.db"
|
||||
|
||||
# Notification rules - who gets notified for each event type
|
||||
rules:
|
||||
pr:
|
||||
notify_owner: true # Notify PR author on reviews/comments
|
||||
notify_reviewers: true # Notify requested reviewers
|
||||
notify_assignees: true # Notify PR assignees
|
||||
issue:
|
||||
notify_assignees: true # Notify issue assignees
|
||||
comment:
|
||||
notify_mentioned: true # Notify @mentioned users
|
||||
notify_thread_owner: true # Notify PR/Issue author
|
||||
notify_reviewers: true # Notify PR reviewers on comments
|
||||
Reference in New Issue
Block a user