What happened?
Is there a way to redirect inbound http requests to https on the same non-standard port using Pomerium only (i.e. without the help of external proxy such as Nginx)?
For example, my routing is configured as follows:
routes:
- from: https://verify.corp.domain.com:1234
to: http://verify:8000
When accessing the url with http (http://verify.corp.domain.com:1234
), I got 503 error.
I am aware that Nginx can redirect http to https on the same port using error_page
directive. But I wonder if it is possible to achieve this using Pomerium only.
What did you see in the logs?
{"level":"debug","service":"envoy","name":"conn_handler","time":"2022-11-01T08:59:02Z","message":"[C10] new connection from 192.168.64.1:37024"}
{"level":"debug","service":"envoy","name":"connection","time":"2022-11-01T08:59:02Z","message":"[C10] remote address:192.168.64.1:37024,TLS error: 268435612:SSL routines:OPENSSL_internal:HTTP_REQUEST"}
{"level":"debug","service":"envoy","name":"connection","time":"2022-11-01T08:59:02Z","message":"[C10] closing socket: 0"}
{"level":"debug","service":"envoy","name":"conn_handler","time":"2022-11-01T08:59:02Z","message":"[C10] adding to cleanup list"}