snap-cloud / snapCloud

Official cloud backend and community site for the Snap! programming language
https://snap.berkeley.edu/
GNU General Public License v3.0
52 stars 28 forks source link

Setup lets encrypt auto-renew #80

Closed cycomachead closed 6 years ago

cycomachead commented 6 years ago

This shouldn't be too difficult.

We should have an auto-renew script in bin/.

It should:

I should do this before August 19!

cycomachead commented 6 years ago

OK, this should be working on the production server. I did things in a somewhat sad way, but that are workable.

The certbot sets up a cronjob automatically (/etc/cron.d/certbot) upon install so we don't need to change that.

I modified the lets encrypt config file for snap-cloud.cs10.org to use snapCloud/certs/snap-cloud.CS10.org as the directory to store cert files. (This is /etc/letsencrypt/renewal/snap-cloud.CS10.org.conf)

I then added a script to /etc/letsencrypt/renewal-hooks/deploy/1-restart-lapis.sh. It will simply call the daemon to restart the server. It will only run when the cert renewal is successful.

TODO

bromagosa commented 6 years ago

Hmm this autoclosed itself, sorry.

On Thu, Aug 16, 2018, 11:25 AM Michael Ball notifications@github.com wrote:

Reopened #80 https://github.com/bromagosa/snapCloud/issues/80.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/bromagosa/snapCloud/issues/80#event-1791911377, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-DecCWH_9RRS2MXE1ZkveCoe_KN6vVks5uRTp4gaJpZM4VI1GW .

cycomachead commented 6 years ago

I used the word “fix”. But GitHub doesn’t know how to treat “partial fix”. :)

-- Michael Ball From my iPhone michaelball.co

On Aug 16, 2018, at 3:30 AM, Bernat Romagosa notifications@github.com wrote:

Hmm this autoclosed itself, sorry.

On Thu, Aug 16, 2018, 11:25 AM Michael Ball notifications@github.com wrote:

Reopened #80 https://github.com/bromagosa/snapCloud/issues/80.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/bromagosa/snapCloud/issues/80#event-1791911377, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-DecCWH_9RRS2MXE1ZkveCoe_KN6vVks5uRTp4gaJpZM4VI1GW .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

cycomachead commented 6 years ago

Updated the staging server, I believe. :)