Accessing Readeck
- เปิดเบราว์เซอร์ของคุณและเข้าไปที่:
https://<SERVER_IP>/ - A browser SSL warning is expected — the certificate is self-signed.
- Create the admin account in the web interface immediately.
ไฟล์และไดเร็กทอรีที่สำคัญ
- Readeck data directory:
/var/lib/readeck - Readeck configuration directory:
/etc/readeck - Readeck binary:
/usr/local/bin/readeck - Systemd service file:
/etc/systemd/system/readeck.service - Nginx virtual host:
/etc/nginx/sites-available/readeck - TLS certificate and key:
/etc/nginx/ssl
Managing the Services
Check Readeck status:
systemctl status readeck
Restart Readeck:
systemctl restart readeck
View Readeck logs:
journalctl -xeu readeck --no-pager -f
Nginx management:
systemctl status nginx
systemctl restart nginx
journalctl -u nginx -f
หมายเหตุเกี่ยวกับความปลอดภัย
- Readeck runs as a non-login system user.
- Strong systemd sandboxing is enabled.
- Only ports
80และ443are exposed. - Internal service port
8000is not accessible externally. - TLS uses a self-signed certificate.
การเปิดใช้งาน SSL กับโดเมน
1. ชี้โดเมนของคุณไปยังที่อยู่ IP ของเซิร์ฟเวอร์
2. แก้ไขไฟล์การตั้งค่า Nginx และแทนที่ทั้งสองส่วน server_name <IP>; ด้วยโดเมนของคุณ (<your-domain>สำหรับทั้งบล็อก HTTP (พอร์ต 80) และ HTTPS (พอร์ต 443):
vim /etc/nginx/sites-available/readeck
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/readeck
# 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