Skip to content
Gabe Cook edited this page Aug 29, 2023 · 3 revisions

Configuration

Command Line Flags

domain-watch [flags] domain...

Options

      --completion string        Output command-line completion code for the specified shell. Can be 'bash', 'zsh', 'fish', or 'powershell'.
  -e, --every duration           enable cron mode and configure update interval
      --gotify-token string      Gotify app token
      --gotify-url string        Gotify URL (include https:// and port if non-standard)
  -h, --help                     help for domain-watch
      --log-format string        log formatter (text, json) (default "text")
  -l, --log-level string         log level (trace, debug, info, warning, error, fatal, panic) (default "info")
      --metrics-address string   Prometheus metrics API listen address (default ":9090")
      --metrics-enabled          Enables Prometheus metrics API
  -s, --sleep duration           sleep time between queries to avoid rate limits (default 3s)
      --telegram-chat int        Telegram chat ID
      --telegram-token string    Telegram token
  -t, --threshold ints           configure expiration notifications (default [1,7])

Envs

Any flag can be configured as an environment variable with a WATCH_ prefix. Here are some of the notable flags:

Env Description
WATCH_DOMAINS Comma-separated list of domains to watch.
WATCH_EVERY Enable cron mode and configure update interval.
WATCH_SLEEP Sleep time between queries to avoid rate limits.
WATCH_GOTIFY_URL Gotify URL.
WATCH_GOTIFY_TOKEN Gotify token.
WATCH_TELEGRAM_TOKEN Telegram token.
WATCH_TELEGRAM_CHAT Telegram chat ID.
WATCH_THRESHOLD Comma-separated list of expiration notification times.
Clone this wiki locally