Skip to content
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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

feat: one-command setup script #438

wants to merge 2 commits into from

Conversation

abouolia
Copy link
Contributor

@abouolia abouolia commented May 12, 2024

  • Make directory for self-hosted setup scripts and change directory to it.
mkdir bigcapital-selfhosted && cd bigcapital-selfhosted
  • Download and run the setup.sh script.
curl -fsSL -o setup.sh https://raw.githubusercontent.com/bigcapitalhq/bigcapital/BIG-166/setup.sh
  • Run the bash script.
bash setup.sh

Copy link

linear bot commented May 12, 2024

@johnnyq
Copy link

johnnyq commented May 22, 2024

nice work @abouolia it would also be a great addition to Auto setup Let Encrypt for HTTPS and install docker if not already installed

@abouolia
Copy link
Contributor Author

@johnnyq great idea, will add it, will make the script ask about the domain then will generate a ssl to it.

@johnnyq
Copy link

johnnyq commented May 25, 2024

Another idea @abouolia since bigcapital is multi Tenanted it would also be a nice addition to easily add tenant domains with Let Encrypt.

@realadeel
Copy link

lgtm

@abouolia
Copy link
Contributor Author

Definitely we'll merge it 😁, that would be great thing when we do DigitalOcean one-click apps.

@angelosorno
Copy link

angelosorno commented Jul 17, 2024

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

@abouolia
Copy link
Contributor Author

@angelosorno That really awesome, thanks for your contribution, fyi recently we have migrated from Nginx to Envoy proxy.

@johnnyq
Copy link

johnnyq commented Sep 19, 2024

Hi @abouolia just checking to see if this PR will be merged soon, we can't wait to give it a shot. Thank you =]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants