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
This commit is contained in:
20
Caddyfile
20
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user