Web Access
- Akses Poznote melalui browser web Anda:
https://<SERVER-IP> - Terima peringatan SSL (sertifikat self-signed).
- Kredensial Poznote tersimpan dengan aman di:
/root/poznote/.env
Important Paths
- Install Directory:
/root/poznote - Persistent Data:
/root/poznote/data - Environment file:
/root/poznote/.env - File docker-compose:
/root/poznote/docker-compose.yml - Nginx Config:
/etc/nginx/sites-available/poznote - SSL Certs:
/etc/nginx/ssl/
Mengelola Layanan
Docker:
cd /root/poznote
docker compose ps
docker compose logs -f
docker compose restart
Nginx:
systemctl status nginx
systemctl restart nginx
Mengaktifkan SSL dengan Domain
1. Arahkan domain Anda ke IP server.
2. Edit konfigurasi Nginx dan ganti kedua server_name <IP>; dengan domain Anda (<your-domain>) untuk blok HTTP (port 80) dan HTTPS (port 443):
vim /etc/nginx/sites-available/poznote
3. Install Certbot:
apt install -y certbot python3-certbot-nginx
4. Jalankan perintah berikut untuk menghasilkan sertifikat Lets Encrypt yang valid:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Ganti path SSL di konfigurasi Nginx:
vim /etc/apache2/sites-available/poznote
# 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. Restart Nginx untuk menerapkan perubahan:
systemctl restart nginx
7. Buka browser Anda dan kunjungi: https://yourdomain.com