Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Automate certbot setup on deploy #2

Open
BrunoBernardino opened this issue Feb 7, 2019 · 0 comments
Open

Automate certbot setup on deploy #2

BrunoBernardino opened this issue Feb 7, 2019 · 0 comments
Labels
good first issue Good for newcomers

Comments

@BrunoBernardino
Copy link
Owner

BrunoBernardino commented Feb 7, 2019

This should execute after #1, but it doesn't need to be worked on after (that issue would just need to make sure to run that code before certbot, as it will inject code).

With a couple of variables for the make deploy command (like DOMAIN=example.com EMAIL=user@example.com make deploy) I should be able to run certbot automatically, in the server, adding something like this to postinstall.sh (the variables would need to be injected somehow):

certbot --nginx -n -d $DOMAIN -d www.$DOMAIN --agree-tos --email $EMAIL --redirect
@BrunoBernardino BrunoBernardino added the good first issue Good for newcomers label Feb 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant