From 15828b49d2d57128a23b8aeedc44c6b5f7781d4b Mon Sep 17 00:00:00 2001 From: Laurence Tratt Date: Sun, 29 Sep 2024 08:34:25 +0100 Subject: [PATCH] Document the HTTPS listen option. --- pizauth.conf.5 | 6 ++++++ src/config.rs | 1 + 2 files changed, 7 insertions(+) diff --git a/pizauth.conf.5 b/pizauth.conf.5 index 4346d82..be98f29 100644 --- a/pizauth.conf.5 +++ b/pizauth.conf.5 @@ -42,6 +42,12 @@ specifies the address for the HTTP server to listen on. Defaults to .Qq 127.0.0.1:0 . +.It Sy https_listen = Qo Em bind-name Qc ; +specifies the address for the +.Xr pizauth 1 +HTTPS server to listen on. +Defaults to +.Qq 127.0.0.1:0 . .It Sy transient_error_if_cmd = Qo Em shell-cmd Qc ; specifies a shell command to be run when pizauth repeatedly encounters errors when trying to refresh a token. diff --git a/src/config.rs b/src/config.rs index 4cccb5a..5c36d16 100644 --- a/src/config.rs +++ b/src/config.rs @@ -26,6 +26,7 @@ const REFRESH_RETRY_DEFAULT: Duration = Duration::from_secs(40); const AUTH_NOTIFY_INTERVAL_DEFAULT: u64 = 15 * 60; /// What is the default bind() address for the HTTP server? const HTTP_LISTEN_DEFAULT: &str = "127.0.0.1:0"; +/// What is the default bind() address for the HTTPS server? const HTTPS_LISTEN_DEFAULT: &str = "127.0.0.1:0"; #[derive(Debug)]