mirror of
https://git.ptzo.gdn/feditools/relay.git
synced 2024-09-21 09:47:11 +00:00
cd97960f32
Reviewed-on: https://git.ptzo.gdn/feditools/relay/pulls/182 Co-authored-by: Tyr Mactire <tyr@pettingzoo.co> Co-committed-by: Tyr Mactire <tyr@pettingzoo.co>
120 lines
3.3 KiB
YAML
120 lines
3.3 KiB
YAML
#############
|
|
## GENERAL ##
|
|
#############
|
|
|
|
# String. Log level to use throughout the application.
|
|
# Options: ["trace","debug","info","warn","error","fatal"]
|
|
# Default: "info"
|
|
log-level: "trace"
|
|
|
|
##############
|
|
## DATABASE ##
|
|
##############
|
|
|
|
# String. Database type.
|
|
# Options: ["postgres","sqlite"]
|
|
# Default: "postgres"
|
|
db-type: "postgres"
|
|
|
|
# String. Database address or parameters.
|
|
#
|
|
# For Postgres, this should be the address or socket at which the database can be reached.
|
|
#
|
|
# For Sqlite, this should be the path to your sqlite database file. Eg., /opt/feditools/sqlite.db.
|
|
# If the file doesn't exist at the specified path, it will be created.
|
|
# If just a filename is provided (no directory) then the database will be created in the same directory
|
|
# as the binary.
|
|
# If address is set to :memory: then an in-memory database will be used (no file).
|
|
# WARNING: :memory: should NOT BE USED except for testing purposes.
|
|
#
|
|
# Examples: ["localhost","my.db.host","127.0.0.1","192.111.39.110",":memory:", "sqlite.db"]
|
|
# Default: ""
|
|
db-address: "localhost"
|
|
|
|
# Int. Port for database connection.
|
|
# Examples: [5432, 1234, 6969]
|
|
# Default: 5432
|
|
db-port: 5432
|
|
|
|
# String. Username for the database connection.
|
|
# Examples: ["mydbuser","postgres","relay"]
|
|
# Default: ""
|
|
db-user: "test"
|
|
|
|
# String. Password to use for the database connection
|
|
# Examples: ["password123","omgiloveyou","postgres"]
|
|
# Default: ""
|
|
db-password: "test"
|
|
|
|
# String. Name of the database to use within the provided database type.
|
|
# Examples: ["mydb","postgres","relay"]
|
|
# Default: "relay"
|
|
db-database: "test"
|
|
|
|
# String. Disable, enable, or require SSL/TLS connection to the database.
|
|
# If "disable" then no TLS connection will be attempted.
|
|
# If "enable" then TLS will be tried, but the database certificate won't be checked (for self-signed certs).
|
|
# If "require" then TLS will be required to make a connection, and a valid certificate must be presented.
|
|
# Options: ["disable", "enable", "require"]
|
|
# Default: "disable"
|
|
db-tls-mode: "disable"
|
|
|
|
# String. Path to a CA certificate on the host machine for db certificate validation.
|
|
# If this is left empty, just the host certificates will be used.
|
|
# If filled in, the certificate will be loaded and added to host certificates.
|
|
# Examples: ["/path/to/some/cert.crt"]
|
|
# Default: ""
|
|
db-tls-ca-cert: ""
|
|
|
|
# String. Key used for encrypting values written to the database.
|
|
# Default: ""
|
|
db-crypto-key: "test1234test5678test9123test4567"
|
|
|
|
###########
|
|
## REDIS ##
|
|
###########
|
|
|
|
# String. Address and port of the redis instance
|
|
# Default: "localhost:6379"
|
|
#redis-address: "localhost:6379"
|
|
|
|
# Int. Redis database to use
|
|
# Examples: [0, 1, 15]
|
|
# Default: 0
|
|
#redis-db: 0
|
|
|
|
# String. Password to use for the redis connection
|
|
# Examples: ["","test","password"]
|
|
# Default: ""
|
|
redis-password: "test"
|
|
|
|
############
|
|
## RUNNER ##
|
|
############
|
|
|
|
# String. Address and port of the redis instance
|
|
# Default: "localhost:6379"
|
|
runner-address: "localhost:6380"
|
|
|
|
# Int. Redis database to use
|
|
# Examples: [0, 1, 15]
|
|
# Default: 0
|
|
#runner-db: 0
|
|
|
|
# String. Password to use for the redis connection
|
|
# Examples: ["","test","password"]
|
|
# Default: ""
|
|
runner-password: "test2"
|
|
|
|
#######
|
|
# WEB #
|
|
#######
|
|
|
|
# String. Key used for encrypting values written to the database.
|
|
# Default: ""
|
|
encryption-key: test
|
|
|
|
# String. Key used for generating tokens.
|
|
# Default: ""
|
|
token-salt: test
|