Web Access
URL: https://<IP>/
HTTP port 80 redirects to HTTPS 443.
Default account:
- Username:
owner - Password:
owner123
Penting: Segera ganti kata sandi default melalui antarmuka web.
Environment Configuration
File: /opt/zy/.env
Untuk memperbarui variabel lingkungan, edit .env dan restart layanan:
systemctl restart zy.service
File & Direktori Penting
- Zy binary:
/opt/zy/zy - Variabel lingkungan (token API, URL publik):
/opt/zy/.env - Systemd unit:
/etc/systemd/system/zy.service - Konfigurasi situs NGINX:
/etc/nginx/sites-available/zy - Situs Nginx aktif:
/etc/nginx/sites-enabled/zy - Sertifikat SSL self-signed:
/etc/nginx/ssl/
Manajemen Layanan Systemd
# Restart the Zy service
systemctl restart zy.service
# Check Zy status
systemctl status zy.service
# Restart the Nginx service
systemctl restart nginx.service
# Check Nginx status
systemctl status nginx.service
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/zy
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/zy
# 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. Update PUBLIC_BASE_URL in /opt/zy/env:
PUBLIC_BASE_URL=https://yourdomain.com
8. Restart Zy untuk menerapkan perubahan:
systemctl restart zy
9. Buka browser Anda dan kunjungi: https://yourdomain.com