Configuration
Patchwork is configured through a TOML file. The default configuration can be generated with:
$ pw config
Configuration files are loaded in the following order, with later files overriding earlier ones:
/etc/patchwork.tomlpatchwork.toml(current directory)$PATCHWORK_TOML(environment variable)
Command-line flags take precedence over all configuration files.
Settings Reference
[database]
urlDatabase connection URL. Supported schemes:
postgres://user:pass@host/dbname?sslmode=disablemysql://user:pass@host/dbnamesqlite:///path/to/file.db
auto-syncAutomatically run pending migrations when the HTTP server starts. Default:
false.
[http]
listenHTTP listen address. Default:
127.0.0.1:8080.base-urlThe public base URL of the Patchwork instance, used for generating links in emails and API responses. Example:
https://patchwork.example.com.
[ingress]
listenSMTP listen address for the ingress daemon. Default:
127.0.0.1:2525.max-message-sizeMaximum email message size in bytes. Default:
10485760(10 MB).max-recipientsMaximum number of recipients per message. Default:
100.
[smtp]
Outgoing mail configuration for notifications.
transportSMTP encryption mode. One of
none,starttls,tls. Default:none.hostSMTP server hostname. Default:
localhost.portSMTP server port. Default:
25.userSMTP authentication username. Leave empty for unauthenticated delivery.
passwordSMTP authentication password.
fromSender email address for outgoing notifications. Default:
patchwork@localhost.
Global Flags
-S,--syslogRedirect logging to syslog instead of stderr.