-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: one-command setup script #438
base: develop
Are you sure you want to change the base?
Conversation
abouolia
commented
May 12, 2024
•
edited
Loading
edited
- Make directory for self-hosted setup scripts and change directory to it.
- Download and run the setup.sh script.
- Run the bash script.
nice work @abouolia it would also be a great addition to Auto setup Let Encrypt for HTTPS and install docker if not already installed |
@johnnyq great idea, will add it, will make the script ask about the domain then will generate a ssl to it. |
Another idea @abouolia since bigcapital is multi Tenanted it would also be a nice addition to easily add tenant domains with Let Encrypt. |
lgtm |
Definitely we'll merge it 😁, that would be great thing when we do DigitalOcean one-click apps. |
I have an idea to automate HTTPS with Certbot. Something like this.Install Script#!/bin/bash
# CertBot
sudo apt install snapd -y
sudo snap install core
sudo snap install --classic certbot
sudo snap refresh core
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo snap set certbot trust-plugin-with-root=ok
# Test CertBot 🤖
echo "👇 Testing CertBot functionality"
sudo certbot renew --dry-run
# Make certbot auto-configure NGINX
sudo certbot --nginx --agree-tos -v
# Rename the configuration file
sudo nginx -t Update SSL#!/bin/bash
sudo snap refresh core
# Test
echo "👇 Testing CertBot functionality"
sudo certbot renew --dry-run
# Check for new .conf and renew existing and new SSLs
echo "👇 Renewing certificates..."
sudo certbot renew --nginx --force-renewal -v
# Restart the service
echo "👇 Restarting Nginx..."
sudo nginx -t
sudo service nginx restart
# Check logs
echo "👇 Nginx service status..."
systemctl status nginx.service
# Display completion message
echo "👇😀"
echo "The script has completed successfully ✅" I used this in other projects: https://github.com/angelosorno/NGINX-One/tree/main |
@angelosorno That really awesome, thanks for your contribution, fyi recently we have migrated from Nginx to Envoy proxy. |
Hi @abouolia just checking to see if this PR will be merged soon, we can't wait to give it a shot. Thank you =] |