Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
USER_ID=1000

# Index GUI
TORRUST_INDEX_GUI_API_BASE_URL='https://index.torrust-demo.com/api/v1'
NITRO_HOST=0.0.0.0
NITRO_PORT=3000

# Index
TORRUST_INDEX_CONFIG_TOML=
TORRUST_INDEX_API_CORS_PERMISSIVE=false
TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__USER_CLAIM_TOKEN_PEPPER='MyClaimTokenPepper'
TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN='MyAccessToken'

# Tracker
TORRUST_TRACKER_CONFIG_TOML=
TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN='MyAccessToken'

# Grafana
GF_SECURITY_ADMIN_USER=admin
GF_SECURITY_ADMIN_PASSWORD=admin
GF_SECURITY_ADMIN_PASSWORD=admin
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Torrust Demo
# Torrust Tracker Demo

This repo contains all the configuration needed to run the live Torrust demo.

Live demo: <https://index.torrust-demo.com/torrents>.
This repo contains all the configuration needed to run the live Torrust Tracker demo.

It's also used to track issues in production.

> IMPORTANT: We are in the process of [splitting the Torrust Demo repo into two repos](https://github.com/torrust/torrust-demo/issues/79). This will allow us to deploy both services independently and it would make easier for users who only want to setup the tracker to re-use this setup. The content of this repo may change drastically in the future.

## Demo tracker

- HTTP Tracker: <https://tracker.torrust-demo.com/announce>
Expand Down
51 changes: 0 additions & 51 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,57 +41,6 @@ services:
- tracker
- grafana

index-gui:
image: torrust/index-gui:develop
container_name: index-gui
tty: true
restart: unless-stopped
environment:
- USER_ID=${USER_ID}
- NUXT_PUBLIC_API_BASE=${TORRUST_INDEX_GUI_API_BASE_URL:-http://localhost:3001/v1}
- NITRO_HOST=${NITRO_HOST:-0.0.0.0}
- NITRO_PORT=${NITRO_PORT:-3000}
networks:
- frontend_network
ports:
- 3000:3000
volumes:
- ./storage/index-gui/log:/var/log/torrust/index-gui:Z
logging:
options:
max-size: "10m"
max-file: "10"
depends_on:
- index
- tracker

index:
image: torrust/index:develop
container_name: index
tty: true
restart: unless-stopped
environment:
- USER_ID=${USER_ID}
- TORRUST_INDEX_DATABASE=${TORRUST_INDEX_DATABASE:-sqlite3}
- TORRUST_INDEX_DATABASE_DRIVER=${TORRUST_INDEX_DATABASE_DRIVER:-sqlite3}
- TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN=${TORRUST_INDEX_CONFIG_OVERRIDE_TRACKER__TOKEN:-MyAccessToken}
- TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__USER_CLAIM_TOKEN_PEPPER=${TORRUST_INDEX_CONFIG_OVERRIDE_AUTH__USER_CLAIM_TOKEN_PEPPER:-MaxVerstappenWC2021}
- TORRUST_INDEX_API_CORS_PERMISSIVE=${TORRUST_INDEX_API_CORS_PERMISSIVE:-true}
networks:
- backend_network
ports:
- 3001:3001
volumes:
- ./storage/index/lib:/var/lib/torrust/index:Z
- ./storage/index/log:/var/log/torrust/index:Z
- ./storage/index/etc:/etc/torrust/index:Z
logging:
options:
max-size: "10m"
max-file: "10"
depends_on:
- tracker

grafana:
image: grafana/grafana:11.4.0
container_name: grafana
Expand Down
8 changes: 4 additions & 4 deletions docs/backups.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Backups

## Backup Index Database
## Backup Tracker Database

```bash
cd /home/torrust/github/torrust/torrust-demo/
./share/bin/index-db-backup.sh
cd /home/torrust/github/torrust/torrust-tracker-demo/
./share/bin/tracker-db-backup.sh
```

## Check Backups Crontab Configuration
Expand All @@ -26,7 +26,7 @@ total 26618268
-rwxr-x--- 1 root root 2342912 May 12 04:00 backup_2025-05-12_04-00-01.db
```

YOu can also check the script output with:
You can also check the script output with:

```bash
tail /var/log/cron.log
Expand Down
2 changes: 1 addition & 1 deletion docs/deployment.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Deployment

1. SSH into the server.
2. Execute the deployment script: `./bin/deploy-torrust-demo.com.sh`.
2. Execute the deployment script: `./bin/deploy-torrust-tracker-demo.com.sh`.
3. Execute the smoke tests:

```console
Expand Down
2 changes: 1 addition & 1 deletion docs/firewall.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Firewall

We are using a Digital Ocean Firewall.
We are using a Hetzner Firewall.

![Firewall Rules](./do-firewall-configuration.png)

Expand Down
86 changes: 0 additions & 86 deletions docs/qbittorrent/torrust.py

This file was deleted.

4 changes: 2 additions & 2 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Follow instructions on [Deploying Torrust To Production](https://torrust.com/blo

You need to also enable a [firewall](./docs/firewall.md).

The application is located in the directory: `/home/torrust/github/torrust/torrust-demo`.
The application is located in the directory: `/home/torrust/github/torrust/torrust-tracker-demo`.

To run docker compose commands you need to cd to the app dir:

```console
cd /home/torrust/github/torrust/torrust-demo
cd /home/torrust/github/torrust/torrust-tracker-demo
```
1 change: 1 addition & 0 deletions project-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ nosniff
NUXT
privkey
publickey
rwxr
SAMEORIGIN
secp
webroot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Update the demo by updating the containers

cd /home/torrust/github/torrust/torrust-demo || exit
cd /home/torrust/github/torrust/torrust-tracker-demo || exit
docker compose pull
docker compose down
docker compose up --build --detach
Expand Down
19 changes: 0 additions & 19 deletions share/bin/index-db-backup.sh

This file was deleted.

17 changes: 0 additions & 17 deletions share/bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,6 @@ fi
mkdir -p ./storage/certbot/etc
mkdir -p ./storage/certbot/lib

## Index

# Generate the Index sqlite database directory and file if it does not exist
mkdir -p ./storage/index/lib/database

if ! [ -f "./storage/index/lib/database/sqlite3.db" ]; then
echo "Creating index database: './storage/index/lib/database/sqlite3.db'"
sqlite3 "./storage/index/lib/database/sqlite3.db" "VACUUM;"
fi

mkdir -p ./storage/index/etc

if ! [ -f "./storage/index/etc/index.prod.container.sqlite3.toml" ]; then
echo "Crating index configuration: './storage/index/etc/index.toml'"
cp ./share/container/default/config/index.prod.container.sqlite3.toml ./storage/index/etc/index.toml
fi

## Tracker

# Generate the Tracker sqlite database directory and file if it does not exist
Expand Down
2 changes: 1 addition & 1 deletion share/bin/ssl_renew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
COMPOSE="/usr/bin/docker compose --ansi never"
DOCKER="/usr/bin/docker"

cd /home/torrust/github/torrust/torrust-demo || exit
cd /home/torrust/github/torrust/torrust-tracker-demo || exit

# Run this just for testing purposes
#$COMPOSE run certbot renew --dry-run && $COMPOSE kill -s SIGHUP proxy
Expand Down
2 changes: 1 addition & 1 deletion share/bin/tracker-db-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
BACKUP_DIR="/home/torrust/backups"

# Define the SQLite database file's path
DATABASE_FILE="/home/torrust/github/torrust/torrust-demo/storage/tracker/lib/database/sqlite3.db"
DATABASE_FILE="/home/torrust/github/torrust/torrust-tracker-demo/storage/tracker/lib/database/sqlite3.db"

# Create a timestamped backup filename
BACKUP_FILE="$BACKUP_DIR/tracker_backup_$(date +%Y-%m-%d_%H-%M-%S).db"
Expand Down
4 changes: 2 additions & 2 deletions share/container/default/config/crontab.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
0 12 * * * /home/torrust/github/torrust/torrust-demo/share/bin/ssl_renew.sh >> /var/log/cron.log 2>&1
0 * * * * /home/torrust/github/torrust/torrust-demo/share/bin/index-db-backup.sh >> /var/log/cron.log 2>&1
0 12 * * * /home/torrust/github/torrust/torrust-tracker-demo/share/bin/ssl_renew.sh >> /var/log/cron.log 2>&1
0 * * * * /home/torrust/github/torrust/torrust-tracker-demo/share/bin/tracker-db-backup.sh >> /var/log/cron.log 2>&1
25 changes: 0 additions & 25 deletions share/container/default/config/index.prod.container.sqlite3.toml

This file was deleted.

Loading