From d52e57612942cbe0c6a0dd774fcc2caac8f439d5 Mon Sep 17 00:00:00 2001 From: Eric Hodel Date: Wed, 27 Dec 2023 06:15:48 -0800 Subject: feat: Add TLS to atuin-server (#1457) * 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 --- atuin-server/server.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'atuin-server/server.toml') diff --git a/atuin-server/server.toml b/atuin-server/server.toml index b2468ddb..946769c9 100644 --- a/atuin-server/server.toml +++ b/atuin-server/server.toml @@ -27,3 +27,8 @@ # enable = false # host = 127.0.0.1 # port = 9001 + +# [tls] +# enable = false +# cert_path = "" +# pkey_path = "" -- cgit v1.3.1