mirror of
https://github.com/atuinsh/atuin.git
synced 2024-12-27 09:29:24 +01:00
d52e576129
* Add TLS to atuin-server atuin as a project already includes most of the dependencies necessary for server-side TLS. This allows `atuin server start` to use a TLS certificate when self-hosting in order to avoid the complication of wrapping it in a TLS-aware proxy server. Configuration is handled similar to the metrics server with its own struct and currently accepts only the private key and certificate file paths. Starting a TLS server and a TCP server are divergent because the tests need to bind to an arbitrary port to avoid collisions across tests. The API to accomplish this for a TLS server is much more verbose. * Fix clippy, fmt * Add TLS section to self-hosting
35 lines
749 B
TOML
35 lines
749 B
TOML
## host to bind, can also be passed via CLI args
|
|
# host = "127.0.0.1"
|
|
|
|
## port to bind, can also be passed via CLI args
|
|
# port = 8888
|
|
|
|
## whether to allow anyone to register an account
|
|
# open_registration = false
|
|
|
|
## URI for postgres (using development creds here)
|
|
# db_uri="postgres://username:password@localhost/atuin"
|
|
|
|
## Maximum size for one history entry
|
|
# max_history_length = 8192
|
|
|
|
## Maximum size for one record entry
|
|
## 1024 * 1024 * 1024
|
|
# max_record_size = 1073741824
|
|
|
|
## Webhook to be called when user registers on the servers
|
|
# register_webhook_username = ""
|
|
|
|
## Default page size for requests
|
|
# page_size = 1100
|
|
|
|
# [metrics]
|
|
# enable = false
|
|
# host = 127.0.0.1
|
|
# port = 9001
|
|
|
|
# [tls]
|
|
# enable = false
|
|
# cert_path = ""
|
|
# pkey_path = ""
|