Web Access
URL: https://<IP>/
HTTP port 80 redirects to HTTPS 443.
Default account:
- Username:
owner - Password:
owner123
Důležité: Okamžitě změňte výchozí heslo ve webovém rozhraní.
Environment Configuration
File: /opt/zy/.env
Chcete-li aktualizovat proměnné prostředí, upravte .env a restartujte službu:
systemctl restart zy.service
Důležité soubory a adresáře
- Zy binary:
/opt/zy/zy - Proměnné prostředí (token API, veřejné URL):
/opt/zy/.env - Systemd unit:
/etc/systemd/system/zy.service - Konfigurace webu v Nginx:
/etc/nginx/sites-available/zy - Nginx site povolena:
/etc/nginx/sites-enabled/zy - Selbst-signované SSL certifikáty:
/etc/nginx/ssl/
Správa služby přes 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
Povolení SSL s vlastní doménou
1. Nasměrujte svou doménu na IP adresu serveru.
2. Upravte konfiguraci Nginx a nahraďte obě hodnoty server_name <IP>; svou doménou (<your-domain>) pro bloky HTTP (port 80) i HTTPS (port 443):
vim /etc/nginx/sites-available/zy
3. Install Certbot:
apt install -y certbot python3-certbot-nginx
4. Spusťte následující příkaz pro vygenerování platného certifikátu Let's Encrypt:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Nahraďte cesty SSL v konfiguraci 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. Restartujte Nginx, aby se změny projevily:
systemctl restart nginx
7. Update PUBLIC_BASE_URL in /opt/zy/env:
PUBLIC_BASE_URL=https://yourdomain.com
8. Restartujte Zy, aby se změny projevily:
systemctl restart zy
9. Otevřete prohlížeč a přejděte na: https://yourdomain.com