svenstaro / miniserve

🌟 For when you really just want to serve some files over HTTP right now!
MIT License
5.99k stars 290 forks source link

How to use HTTPS #1382

Closed BakaGzRay12456 closed 5 months ago

BakaGzRay12456 commented 5 months ago

How can I use the HTTPS?

svenstaro commented 5 months ago

Check the README:

      --tls-cert <TLS_CERT>
          TLS certificate to use

          [env: MINISERVE_TLS_CERT=]

      --tls-key <TLS_KEY>
          TLS private key to use

          [env: MINISERVE_TLS_KEY=]

Once these are both enabled, you'll have HTTPS.