Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Dec 7, 2024
2 parents 2438eb0 + 7f32a46 commit f0216ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,7 @@ An easy on the eyes, portable, lightning fast pastebin written in Svelte and Kot
### Prerequisites
Docker. Both the frontend and backend are to be installed with Docker. You can learn more [here](https://www.docker.com).

## Automated Installation - Ubuntu
This script will download and install all the files necessary to run PasteBook, as well as guide you through setting up SSL.
```bash
bash <(curl -sL https://raw.githubusercontent.com/Loudbooks/PasteBook/refs/heads/master/install.sh)
```

> [!CAUTION]
> Do not modify `docker-compose.yml`. You will break things.
Once the script has completed, you can start PasteBook with the following command.
```bash
docker compose up -d
```

## Manual Installation
## Installation
The following is a guide to get PasteBook running on your system under your domain with SSL. All of this was tested on Ubuntu Linux.

### Preparation
Expand Down
14 changes: 7 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ install_packages() {
echo
echo "Installing packages..."
echo
apt-get update
apt-get install -y curl nginx certbot python3-certbot-nginx
sudo apt-get update
sudo apt-get install -y curl nginx certbot python3-certbot-nginx
echo
echo "Packages have been installed."
}

download_docker_compose() {
echo
echo "Downloading docker-compose.yml..."
curl -sSL https://raw.githubusercontent.com/Loudbooks/PasteBook/refs/heads/master/docker-compose.yml -o docker-compose.yml
sudo curl -sSL https://raw.githubusercontent.com/Loudbooks/PasteBook/refs/heads/master/docker-compose.yml -o docker-compose.yml
echo "docker-compose.yml has been created."
}

Expand All @@ -39,12 +39,12 @@ download_and_configure_nginx() {
echo "Downloading default Nginx configuration..."
echo

curl -sSL https://raw.githubusercontent.com/Loudbooks/PasteBook/refs/heads/master/pastebook.conf -o /etc/nginx/sites-available/pastebook.conf
sudo curl -sSL https://raw.githubusercontent.com/Loudbooks/PasteBook/refs/heads/master/pastebook.conf -o /etc/nginx/sites-available/pastebook.conf

read -p "Enter your domain name (e.g., pastebook.dev): " DOMAIN
sed -i "s/<DOMAIN>/${DOMAIN}/g" /etc/nginx/sites-available/pastebook.conf
sudo sed -i "s/<DOMAIN>/${DOMAIN}/g" /etc/nginx/sites-available/pastebook.conf

ln -s /etc/nginx/sites-available/pastebook.conf /etc/nginx/sites-enabled/
sudo ln -s /etc/nginx/sites-available/pastebook.conf /etc/nginx/sites-enabled/
echo
echo "Nginx configuration completed."
echo
Expand Down Expand Up @@ -73,4 +73,4 @@ install_packages
download_docker_compose
create_env_file
download_and_configure_nginx
ready
ready

0 comments on commit f0216ca

Please sign in to comment.