Add redirection port to config

This commit is contained in:
Gamerboy59 2024-09-10 11:28:19 +02:00 committed by GitHub
commit 11135e3e1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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:<port>
# 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"
registry_path = "/etc/rpxy/acme_registry"