init
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"version": 1,
|
||||
"server": {
|
||||
"listen": ":8080",
|
||||
"admin_username": "admin",
|
||||
"admin_password_hash": "",
|
||||
"session_secret": ""
|
||||
},
|
||||
"divera": {
|
||||
"base_url": "https://app.divera247.com",
|
||||
"access_key": "",
|
||||
"ucr": 0,
|
||||
"timeout_seconds": 15,
|
||||
"dry_run": true
|
||||
},
|
||||
"ingress": {
|
||||
"allow_unauthenticated": false,
|
||||
"ntfy_tokens": {"alarm": "replace-me", "ops": "replace-me"},
|
||||
"webhook_tokens": {"default": "replace-me"},
|
||||
"gotify_tokens": ["replace-me"],
|
||||
"mail": [
|
||||
{
|
||||
"id": "mail-ops",
|
||||
"enabled": false,
|
||||
"address": "imap.example.org:993",
|
||||
"username": "gateway@example.org",
|
||||
"password": "env:GATEWAY_IMAP_PASSWORD",
|
||||
"folder": "INBOX",
|
||||
"channel": "mail-ops",
|
||||
"poll_seconds": 60,
|
||||
"import_existing": false
|
||||
}
|
||||
],
|
||||
"discord": {
|
||||
"enabled": false,
|
||||
"application_id": "",
|
||||
"public_key": "",
|
||||
"command": "notify",
|
||||
"guild_ids": [],
|
||||
"channel_ids": []
|
||||
}
|
||||
},
|
||||
"outbounds": [
|
||||
{
|
||||
"id": "mail-ops",
|
||||
"name": "Mail Betrieb",
|
||||
"provider": "smtp",
|
||||
"smtp_host": "smtp.example.org",
|
||||
"smtp_port": 587,
|
||||
"tls_mode": "starttls",
|
||||
"username": "gateway@example.org",
|
||||
"password": "env:GATEWAY_SMTP_PASSWORD",
|
||||
"from": "gateway@example.org",
|
||||
"to": ["ops@example.org"],
|
||||
"timeout_seconds": 30,
|
||||
"live": false
|
||||
},
|
||||
{
|
||||
"id": "ntfy-ops",
|
||||
"name": "ntfy Betrieb",
|
||||
"provider": "ntfy",
|
||||
"url": "https://ntfy.sh",
|
||||
"topic": "replace-me-private-topic",
|
||||
"bearer_token": "env:GATEWAY_NTFY_TOKEN",
|
||||
"timeout_seconds": 15,
|
||||
"live": false
|
||||
},
|
||||
{
|
||||
"id": "gotify-ops",
|
||||
"name": "Gotify Betrieb",
|
||||
"provider": "gotify",
|
||||
"url": "https://gotify.example.org/message",
|
||||
"bearer_token": "env:GATEWAY_GOTIFY_TOKEN",
|
||||
"timeout_seconds": 15,
|
||||
"live": false
|
||||
},
|
||||
{
|
||||
"id": "discord-ops",
|
||||
"name": "Discord Betrieb",
|
||||
"provider": "discord",
|
||||
"url": "https://discord.com/api/webhooks/123456789/replace-me",
|
||||
"timeout_seconds": 15,
|
||||
"live": false
|
||||
},
|
||||
{
|
||||
"id": "http-ops",
|
||||
"name": "HTTP Statusdienst",
|
||||
"provider": "webhook",
|
||||
"url": "https://example.invalid/notifications",
|
||||
"bearer_token": "replace-me",
|
||||
"timeout_seconds": 15,
|
||||
"live": false
|
||||
}
|
||||
],
|
||||
"mappings": [
|
||||
{
|
||||
"id": "ntfy-discord",
|
||||
"name": "ntfy ops -> Discord",
|
||||
"enabled": false,
|
||||
"source": "ntfy",
|
||||
"channel_regex": "^ops$",
|
||||
"target": "discord",
|
||||
"outbound_id": "discord-ops",
|
||||
"title_template": "{{.Title}}",
|
||||
"text_template": "{{.Message}}"
|
||||
},
|
||||
{
|
||||
"id": "ntfy-alarm",
|
||||
"name": "ntfy alarm -> Divera247 Alarm",
|
||||
"enabled": true,
|
||||
"source": "ntfy",
|
||||
"channel_regex": "^alarm$",
|
||||
"title_regex": "",
|
||||
"message_regex": "",
|
||||
"min_priority": 0,
|
||||
"target": "alarm",
|
||||
"title_template": "{{if .Title}}{{.Title}}{{else}}ALARM{{end}}",
|
||||
"text_template": "{{.Message}}",
|
||||
"address_template": "",
|
||||
"notification_type": 3,
|
||||
"cluster_routes": {},
|
||||
"groups": [12345],
|
||||
"send_push": true,
|
||||
"send_sms": false,
|
||||
"send_call": false,
|
||||
"send_mail": false,
|
||||
"send_pager": false,
|
||||
"private_mode": false,
|
||||
"extra": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user