I do have 2 networked RFID-Readers which can only make a post to an HTTP Endpoint upon Card Discovery.
Now i need to make Caddy do the https stuff for my “dumb” RFID-Readers.
I already tried this simple config:
localhost:8080
reverse_proxy {
to data.hasibaer.net:443
header_up Host {http.reverse_proxy.upstream.host}
transport http {
tls
}
}
but i get the following Error:* Trying ::1:8080…
TCP_NODELAY set
Connected to localhost (::1) port 8080 (#0)
GET / HTTP/1.1
Host: localhost:8080
User-Agent: curl/7.68.0
Accept: /
Mark bundle as not supporting multiuse
HTTP 1.0, assume close after body
< HTTP/1.0 400 Bad Request
<
Client sent an HTTP request to an HTTPS server.
Closing connection 0
should this work or Am i in the wrong direction?
In the End i want caddy to provide an http Endpoint and forward it to an https Endpoint, meaning that it should do the https challenge, so my clients don’t have to.