From 11135e3e1c8559150766a4d950a70236f121b3fe Mon Sep 17 00:00:00 2001 From: Gamerboy59 Date: Tue, 10 Sep 2024 11:28:19 +0200 Subject: [PATCH] Add redirection port to config --- .build/config.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.build/config.toml b/.build/config.toml index 8a453ae..40279c4 100644 --- a/.build/config.toml +++ b/.build/config.toml @@ -10,6 +10,12 @@ listen_port = 80 listen_port_tls = 443 +# Optional: If your https is listening on a custom port like 8443 +# When you specify this, the server sends a redirection response 301 with specified port to the client for plaintext http request. +# Otherwise, the server sends 301 with the same port as `listen_port_tls`. +# disabled means http -> https and enabled means http -> https: +# https_redirection_port = 443 + # Optional for h2 and http1.1 tcp_listen_backlog = 1024 @@ -85,4 +91,4 @@ max_cache_each_size_on_memory = 4096 # optional. default is 4k if 0, it is alway [experimental.acme] dir_url = "https://acme-v02.api.letsencrypt.org/directory" email = "test@example.com" -registry_path = "/etc/rpxy/acme_registry" \ No newline at end of file +registry_path = "/etc/rpxy/acme_registry"