Logo
Configuration
Overview

Configuration

Configuration file format, defaults, and account options.

1 min read
Config TOML OAuth2

Config File Location

Default:

  • ~/.config/vybr/vygrant.toml

Override:

  • VYGRANT_CONFIG=/absolute/path/to/vygrant.toml

Generated Defaults (vygrant init)

https_listen = "8080"
http_listen = "none"
persist_tokens = true
token_event_cmd = ""
[account]

Top-Level Fields

  • https_listen: HTTPS callback port (string)
  • http_listen: HTTP callback port or none
  • persist_tokens: enables persistent refresh token storage
  • token_event_cmd: shell command executed on token set/delete/restore events

Account Fields

For each [account.<name>]:

  • auth_uri
  • token_uri
  • client_id
  • client_secret
  • redirect_uri
  • scopes (string array)
  • auth_uri_fields (optional key/value query params)

Redirect URI Rule

Match redirect_uri scheme/port with enabled listener:

  • https://localhost:<https_listen> when HTTPS is enabled
  • http://localhost:<http_listen> when HTTP flow is used