เข้าถึง
- Web interface:
https://<server-ip> - Log in using the admin email and password defined during deployment.
- Admin credentials are stored in:
/root/seelf/.env
ไฟล์และไดเร็กทอรีที่สำคัญ
- ไดเร็กทอรีแอปพลิเคชัน:
/root/seelf/ - Environment file (credentials):
/root/seelf/.env - ไฟล์ Docker Compose:
/root/seelf/compose.yml - Seelf persistent data:
/var/lib/docker/volumes/seelf_data/ - Seelf SSH data:
/var/lib/docker/volumes/seelf_ssh/ - การกำหนดค่าเว็บไซต์ด้วย Nginx:
/etc/nginx/sites-available/seelf - เปิดใช้งานเว็บไซต์ Nginx:
/etc/nginx/sites-enabled/seelf - ใบรับรอง TLS:
/etc/nginx/ssl/fullchain.pem - คีย์ส่วนตัว TLS:
/etc/nginx/ssl/privkey.pem
การจัดการบริการ
ตรวจสอบสถานะตู้คอนเทนเนอร์:
docker compose -f /root/seelf/compose.yml ps
เริ่มใหม่:
docker compose -f /root/seelf/compose.yml restart
ดูบันทึก:
docker compose -f /root/seelf/compose.yml logs -f
การเปิดใช้งาน SSL กับโดเมน
1. ชี้โดเมนของคุณไปยังที่อยู่ IP ของเซิร์ฟเวอร์
2. แก้ไขไฟล์การตั้งค่า Nginx และแทนที่ทั้งสองส่วน server_name <IP>; ด้วยโดเมนของคุณ (<your-domain>สำหรับทั้งบล็อก HTTP (พอร์ต 80) และ HTTPS (พอร์ต 443):
vim /etc/nginx/sites-available/seelf
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. แทนที่เส้นทาง SSL ในไฟล์การตั้งค่า Nginx:
vim /etc/apache2/sites-available/seelf
# 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