From 1e08fa45a125fee7a4a4805e97fb8541a8aa6e0e Mon Sep 17 00:00:00 2001 From: Quality App Developer Date: Wed, 14 Jan 2026 14:28:16 +0200 Subject: [PATCH] Add HTTPS support with self-signed certificates for internal domain - Add HTTPS blocks for digiserver.sibiusb.harting.intra with internal TLS - Add HTTPS support for IP address 10.76.152.164 - Add catch-all HTTPS handler with self-signed certificate - Fixes connection refused error on port 443 --- Caddyfile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Caddyfile b/Caddyfile index 190533b..4ef25e2 100755 --- a/Caddyfile +++ b/Caddyfile @@ -49,12 +49,30 @@ http://digiserver.sibiusb.harting.intra { import reverse_proxy_config } -# Handle IP address access +# Internal domain (HTTPS - self-signed certificate) +https://digiserver.sibiusb.harting.intra { + import reverse_proxy_config + tls internal +} + +# Handle IP address access (HTTP) http://10.76.152.164 { import reverse_proxy_config } +# Handle IP address access (HTTPS - self-signed) +https://10.76.152.164 { + import reverse_proxy_config + tls internal +} + # Catch-all for any other HTTP requests http://* { import reverse_proxy_config } + +# Catch-all for any other HTTPS requests +https://* { + import reverse_proxy_config + tls internal +}