使用权
- 网页用户界面:
https://<server-ip> - 接受 SSL 警告(自签名证书)。
- 使用您在安装过程中提供的管理员用户名和密码登录。
- 登录凭据存储在:
/root/traggo/.env
重要文件和目录
- 应用程序根:
/root/traggo/ - 环境变量:
/root/traggo/.env - Docker 撰写文件:
/root/traggo/docker-compose.yml - Traggo数据目录:
/root/traggo/traggodata/ - Nginx站点配置:
/etc/nginx/sites-available/traggo - 启用 Nginx 站点:
/etc/nginx/sites-enabled/traggo - TLS 证书:
/etc/nginx/ssl/fullchain.pem - TLS 私钥:
/etc/nginx/ssl/privkey.pem
服务管理
检查容器状态:
docker compose -f /root/traggo/docker-compose.yml ps
重新启动:
docker compose -f /root/traggo/docker-compose.yml restart
查看日志:
docker compose -f /root/traggo/docker-compose.yml logs -f
为域启用 SSL
1. 将您的域名指向服务器IP。
2.编辑Nginx配置并替换两者 server_name <IP>; 与您的域名(<your-domain>) 对于 HTTP(端口 80)和 HTTPS(端口 443)块:
vim /etc/nginx/sites-available/traggo
3.安装Certbot:
apt install -y certbot python3-certbot-nginx
4. 运行以下命令生成有效的 Let’s Encrypt 证书:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. 替换 Nginx 配置中的 SSL 路径:
vim /etc/apache2/sites-available/traggo
# 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;
6. 重新启动 Nginx 以应用更改:
systemctl restart nginx
7. 打开浏览器并访问: https://yourdomain.com