LuKks / simple-hosting

Simple reverse proxy for hosting multiple apps in the same server
MIT License
1 stars 0 forks source link

ERR_SSL_VERSION_OR_CIPHER_MISMATCH on chrome #3

Open UTrosh opened 6 months ago

UTrosh commented 6 months ago

Got error when using ssl, with certbot, here is my code : this.hosting = new Hosting({log: 2, certbot: true, behindProxy: false}) (in a function) await this.hosting.listen({ securePort: 443 })

When i did the certbot, i got this : image

So it seems to work..., but i cant get to https://my domain..

LuKks commented 6 months ago

What folders and files there are in this path /etc/letsencrypt/live/? Is there like a {servername}-0001?

LuKks commented 6 months ago

Ah yea it works, you need to enable certbot on the specific domain like so: hosting.add('yourdomain.com', { destination: 'http://127.0.0.1:3000', certbot: true })

Certbot on a hosting level is enabled by default (so that Hosting can handle automatic renewals, even for external domains not controlled by Hosting itself), but on a domain level certbot is "disabled" by default

LuKks commented 6 months ago

I will see to improve the README so it's clearer, and maybe default it to true if possible. Also, considering to do a global bin :) Let me know any feedback