Skip to content

Configuration

Manabu Niseki edited this page Feb 7, 2024 · 5 revisions

All the configuration can be done through environmental variables.

Name Desc. Default
DATABASE_URL Database URL sqlite3:miteru.db (SQLite3)
AUTO_DOWNLOAD Whether to automatically download kits or not false
DIRECTORY_TRAVELING Whether to do directory traveling or not false
DOWNLOAD_TO Whether to download kits /tmp
FILE_MAX_SIZE File max size 1,073,741,824
API_TIMEOUT API timeout in seconds 60
HTTP_TIMEOUT HTTP timeout in seconds 60
DOWNLOAD_TIMEOUT Download timeout in seconds 60
SENTRY_DSN Sentry DSN
SENTRY_TRACE_SAMPLE_RATE Sentry trace sample rate 0.25
THREADS A number of threads
SLACK_WEBHOOK_URL Slack webhook URL
SLACK_CHANNEL Slack channel name #general
URLSCAN_API_KEY urlscan.io API key
URLSCAN_SUBMISSION_VISIBILITY urlscan.io submission visibility public
URLSCAN_BASE_CONDITION urlscan.io basde condition task.method:automatic AND NOT task.source:urlscan-observe
URLSCAN_DATE_CONDITION urlscan.io date condition date:>now-1h
VERBOSE Whether to allow verbose logging or not false

Database settings

Miteru records findings in the database. SQLite3, PostgreSQL and MySQL are supported.

You can set a database URL through the environment variable DATABASE_URL.

  • SQLite3: {filepath}.db or sqlite://{filepath}.db
  • MySQL: mysql2://username:password@host:3306/database
  • PostgreSQL: postgres://username:password@host:5432/database
Clone this wiki locally