Accessing Rallly
- Apri il browser e vai su:
https://<SERVER-IP>/ - Accetta avviso SSL (certificato autofirmato).
Email (SMTP) Configuration
Assicurarsi che le connessioni SMTP siano consentite per questo server (richiedere l'abilitazione dell'accesso SMTP).
SMTP settings are stored in: /root/rallly/config.env
To update SMTP or email settings:
- Edit the file:
nano /root/rallly/config.env - Applica le modifiche:
cd/root/rallly && docker compose up -d
Creating the Admin Account
- Sign up using the admin email you provided during deployment.
- Once logged in, open:
https://<SERVER-IP>/control-panel - If your email matches
INITIAL_ADMIN_EMAIL, you will see a button labeled: Make me an admin - Click it to become the administrator.
- You can manage settings and prevent new users from registering an account.
File e directory importanti
- Main application directory:
/root/rallly - Application environment configuration:
/root/rallly/config.env - Configurazione Docker Compose:
/root/rallly/docker-compose.yml - Dati persistenti PostgreSQL:
/var/lib/docker/volumes/rallly_db-data - Configurazione Nginx:
/etc/nginx/sites-available/rallly.conf - Certificati SSL:
/etc/nginx/ssl/
Gestione del servizio
Controllare lo stato del contenitore:
docker compose -f /root/rallly/docker-compose.yml ps
Restart Rallly:
docker compose -f /root/rallly/docker-compose.yml restart
Visualizza registri:
docker compose -f /root/rallly/docker-compose.yml logs -f
Abilitazione SSL con un dominio
1. Indirizza il tuo dominio all'IP del server.
2. Modifica il /root/rallly/config.env file per impostare il tuo nome di dominio: NEXT_PUBLIC_BASE_URL=https://your.domain.com
3. Ricreare i servizi:
cd /root/rallly/
docker compose up -d
4. Modifica la configurazione di Nginx e sostituisci entrambi server_name <IP>; con il tuo dominio (<your-domain>) sia per i blocchi HTTP (porta 80) che HTTPS (porta 443):
vim /etc/nginx/sites-available/rallly.conf
5. Installa Certbot:
apt install -y certbot python3-certbot-nginx
6. Esegui il seguente comando per generare un certificato Let's Encrypt valido:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
7. Sostituire i percorsi SSL nella configurazione Nginx (sezione TLS):
vim /etc/nginx/sites-available/rallly.conf
# Before:
# ssl_certificate /etc/nginx/ssl/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
8. Riavvia Nginx per applicare le modifiche:
systemctl restart nginx
9. Apri il browser e visita: https://yourdomain.com