리덱

웹 페이지의 가독성 있는 콘텐츠를 저장하고 영구히 보관할 수 있는 간단한 웹 앱입니다.

Accessing Readeck

  1. 브라우저를 열고 다음 주소를 방문하세요: https://<SERVER_IP>/
  2. A browser SSL warning is expected — the certificate is self-signed.
  3. 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 가상 호스트: /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 그리고 443 are exposed.
  • Internal service port 8000 is not accessible externally.
  • TLS는 자체 서명된 인증서를 사용합니다.

도메인에 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

신청 세부사항