This directory contains a bootstrap script that automates the deployment of the ORLY relay.
Clone the repository and deploy the relay with a single command:
curl -sSL https://git.nostrdev.com/mleku/next.orly.dev/raw/branch/main/scripts/bootstrap.sh | bash
Note: This assumes the script is accessible at the raw URL path. Adjust the URL based on your git server's raw file URL format.
If you prefer to review the script before running it:
# Download the script
curl -o bootstrap.sh https://git.nostrdev.com/mleku/next.orly.dev/raw/branch/main/scripts/bootstrap.sh
# Review the script
cat bootstrap.sh
# Make it executable and run
chmod +x bootstrap.sh
./bootstrap.sh
- Verifies that git is installed on your system
- Clones the repository to ~/src/next.orly.dev if it doesn't exist
- If the repository already exists, pulls the latest changes from the main branch
- Stashes any local changes before updating
- Executes scripts/deploy.sh to:
- Install Go if needed
- Build the ORLY relay with embedded web UI
- Install the binary to ~/.local/bin/orly
- Set up systemd service
- Configure necessary capabilities
- Shows commands to start, check status, and view logs
After the bootstrap script completes, you can:
sudo systemctl start orly
sudo systemctl enable orly
sudo systemctl status orly
sudo journalctl -u orly -f
~/.local/bin/orly identity
The relay configuration is managed through environment variables. Edit the systemd service file to configure:
sudo systemctl edit orly
See the main README.md for available configuration options.
# Ubuntu/Debian
sudo apt-get update && sudo apt-get install -y git
# Fedora/RHEL
sudo dnf install -y git
# Arch
sudo pacman -S git
Make sure your user has sudo privileges for systemd service management.
If you're running TLS on port 443, make sure no other service is using that port:
sudo netstat -tlnp | grep :443
If the repository URL is not accessible, you may need to:
REPO_URL variable)If you prefer to deploy manually without the bootstrap script:
# Clone repository
git clone https://git.nostrdev.com/mleku/next.orly.dev.git ~/src/next.orly.dev
# Enter directory
cd ~/src/next.orly.dev
# Run deployment
./scripts/deploy.sh
When running scripts from the internet:
For issues or questions:
sudo journalctl -u orly -f