beakerbrowser / dathttpd

Replaced by Homebase! See https://github.com/beakerbrowser/homebase.
MIT License
280 stars 35 forks source link

Https / LetsEncrypt renewall #40

Closed dblodorn closed 6 years ago

dblodorn commented 6 years ago

Hi!

Appreciate the extremely streamlined workflow here! But wondering how renewing the generated ssl certificates might be handled in an equally elegant manner.

I usually use certbot, but alongside nginx. I tried installing it along with letsencrypt on my ubuntu servers - but as node is the web server in this case - i get this error: Problem binding to port 80: Could not bind to IPv4 or IPv6.

Has this issue been explored, is there a simple way to renew, I'll look into it further but just wanted to reach out for any existing solutions.

Im running this on a digital ocean ubuntu 16.04 droplet.]

Thanks!

pfrazee commented 6 years ago

Hey @dblodorn. First of all, we're replacing dathttpd with https://github.com/beakerbrowser/homebase so at some point you might want to switch over.

Second of all, dathttpd should handle cert renewal for you. Is that not happening?

dblodorn commented 6 years ago

@pfrazee - Thanks! yeah checking out homebase - looks sick. Will migrate to this. Yes it seems to have handled the renewalls - i just got a gazillion emails reminding me to renew, but there's probably some way turn those off / or manage frequency.

Psyched to work with self hosted homebase.

pfrazee commented 6 years ago

Good deal, lmk if there's anything I can help with

dblodorn commented 6 years ago

Certainly - I was checking performance on my dathttpd installation (im going to assume homebase is going to be a bit different ) i had around 5 small sites running on it and it was consuming quite a lot of memory. Have you experimented with using NGINX as a proxy server, or is using node for http server best for performance in your opinion.

pfrazee commented 6 years ago

The memory usage is probably caused by Dat. I can look into tuning it.

dblodorn commented 6 years ago

Yeah interesting - these sites of mine are getting like 0 traffic. But i was aiming on publishing a pretty decent amount of unique micro sites up to me server. https://clickholes.com/

screenshot of memory consumption - im using PM2

screen shot 2018-05-16 at 10 56 01 am

screen shot 2018-05-16 at 10 56 16 am

pfrazee commented 6 years ago

Yeah it might have to do with some caching parameters in Dat.