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. 在 Nginx 配置中替换 SSL 路径:
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