HTTPS redirection depending on path #335
|
Consider the following working configuration: listen_port = 80
listen_port_tls = 443
[apps.wngman]
server_name = 'wngman.styris.net'
tls = { https_redirection = true, tls_cert_path = 'server.crt', ...
[[apps.wngman.reverse_proxy]]
upstream = [
{ location = '192.168.1.100:8787' }
]
[[apps.wngman.reverse_proxy]]
path = '/api'
upstream = [
{ location = '192.168.1.100:8001' }
]
[[apps.wngman.reverse_proxy]]
path = '/.well-known'
upstream = [
{ location = '127.0.0.1:8080' }
]Notice how Is there any way I can disable redirection for that target only? |
Replies: 2 comments 1 reply
|
Hi! @styris-ame Honestly, I didn't consider this kind of edge case. Currently, I think it might be better to implement a new upstream option like |
|
I need this option too, it's essential. |
Hi! @styris-ame
Honestly, I didn't consider this kind of edge case. Currently,
https_redirectionworks at the app level (perserver_name), not per individualreverse_proxytarget. In your case, a possible work around is to disablehttps_redirectionfor hosting.well-knownwith plaintext http.I think it might be better to implement a new upstream option like
disable_https_redirectionin future.