5 Commits

Author SHA1 Message Date
Michael Stapelberg b3656e1381 HTTPS redirect: add missing net.SplitHostPort()
The http.Request.Host field can contain a port.

fixes https://github.com/gokrazy/tools/issues/82
2025-01-28 20:52:18 +01:00
Michael Stapelberg 6e97c66235 tls: revert unauthenticated access for localhost
This is not safe when using tailscale, which proxies traffic to localhost by
default. Thanks to joneskoo@ for the report!
2022-03-20 09:26:23 +01:00
andig 067330db55 Honor https-port when redirecting (#79) 2021-01-08 09:10:39 +01:00
andig 97987794f9 Don't redirect requests from localhost to HTTPS (#78) 2021-01-07 16:49:46 +01:00
Janis Streib 17bec15432 Added proof of concept TLS support (#7) (#53)
If there is a certificate and key in /etc/ssl/gokrazy-web.{pem,key.pem},
the webinterface will serve and redirect to https.
2020-05-31 21:58:03 +02:00