Sharing a Ubuntu Certbot Script

Currently updating it but if me sharing this is too much of a issue I can just take it down and repost it on my git... I figured it was certbot with LE so it might help someone in here but like I said if I am wrong I can take it down...

As for intent the script can be run as many times as you want without causing issues and is part of a 3 script series I made that sets up a fresh UB install with nginx, https and wireguard vpn. The UB server acts as a public facing reverse proxy handling termination of https passing the http traffic over the vpn to a separate internal reverse proxy. this setup helps people self host through cgnat or if they just want to hide their home ip or not do any port forwards. As for the snap stuff I am currently expanding the script to cover as low as UB16 and might in the near future cover RHEL as well but thats to be decided still. In every one of the scripts in the 3 part series they are all designed to be run as many times as you want without causing issues other than maybe the nginx one but that just renames the existing file to .bak and increments a number to the end according to how many .baks there already are. Eventually all of the scripts will be condensed into a single script with options to run either a full setup or individual components.

I guess part of my hope of posting it here was to see if anyone had any suggestions or ideas for improvements.

2 Likes