Web Access
URL: https://<IP>/
HTTP port 80 redirects to HTTPS 443.
Default account:
- Username:
owner - Password:
owner123
Important: Change the default password immediately in the web interface.
Environment Configuration
File: /opt/zy/.env
To update environment variables, edit .env and restart service:
systemctl restart zy.service
Important Files & Directories
- Zy binary:
/opt/zy/zy - Environment variables (API token, public URL):
/opt/zy/.env - Systemd unit:
/etc/systemd/system/zy.service - Nginx site config:
/etc/nginx/sites-available/zy - Nginx site enabled:
/etc/nginx/sites-enabled/zy - Self-signed SSL certificates:
/etc/nginx/ssl/
Systemd Service Management
# 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
Enabling SSL with a Domain
1. Point your domain to the server IP.
2. Edit Nginx config and replace both server_name <IP>; with your domain (<your-domain>) for both HTTP (port 80) and HTTPS (port 443) blocks:
vim /etc/nginx/sites-available/zy
3. Install Certbot:
apt install -y certbot python3-certbot-nginx
4. Run the following command to generate a valid Let’s Encrypt certificate:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Replace SSL paths in Nginx config:
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 to apply the changes:
systemctl restart nginx
7. Update PUBLIC_BASE_URL in /opt/zy/env:
PUBLIC_BASE_URL=https://yourdomain.com
8. Restart Zy to apply the changes:
systemctl restart zy
9. Open your browser and visit: https://yourdomain.com