Přístup k webu
URL: https://<IP>/
HTTP port 80 přesměrování na HTTPS 443.
Výchozí účet:
- Uživatelské jméno:
owner - Heslo:
owner123
Důležité: Okamžitě změňte výchozí heslo ve webovém rozhraní.
Konfigurace prostředí
Soubor: /opt/zy/.env
Chcete-li aktualizovat proměnné prostředí, upravte soubor .env a restartujte službu:
systemctl restart zy.service
Důležité soubory a adresáře
- Binární soubor Zy:
/opt/zy/zy - Proměnné prostředí (API token, veřejná URL adresa):
/opt/zy/.env - Jednotka Systemd:
/etc/systemd/system/zy.service - Konfigurace webu Nginx:
/etc/nginx/sites-available/zy - Web Nginx povolen:
/etc/nginx/sites-enabled/zy - Vlastnoručně podepsané certifikáty SSL:
/etc/nginx/ssl/
Správa služeb 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 doménou
1. Nasměrujte svou doménu na IP adresu serveru.
2. Upravte konfiguraci Nginx a nahraďte oba server_name <IP>; s vaší doménou (<your-domain>) pro bloky HTTP (port 80) i HTTPS (port 443):
vim /etc/nginx/sites-available/zy
3. Nainstalujte Certbot:
apt install -y certbot python3-certbot-nginx
4. Spusťte následující příkaz k vygenerování platného certifikátu Lets 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. Aktualizace PUBLIC_BASE_URL v /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 adresu: https://yourdomain.com