Web Access
URL: https://<IP>/
HTTP port 80 redirects to HTTPS 443.
Default account:
- Username:
owner - Password:
owner123
Önemli: Varsayılan parolayı web arayüzünden hemen değiştirin.
Environment Configuration
File: /opt/zy/.env
Ortam değişkenlerini güncellemek için düzenleyin .env ve servisi yeniden başlatın:
systemctl restart zy.service
Önemli Dosyalar ve Dizinler
- Zy binary:
/opt/zy/zy - Ortam değişkenleri (API token, genel URL):
/opt/zy/.env - Systemd unit:
/etc/systemd/system/zy.service - Nginx site yapılandırması:
/etc/nginx/sites-available/zy - Nginx sitesi etkinleştirildi:
/etc/nginx/sites-enabled/zy - Kendinden imzalı SSL sertifikaları:
/etc/nginx/ssl/
Systemd Servis Yönetimi
# 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
Bir Alan Adıyla SSL Etkinleştirme
1. Alan adınızı sunucu IP adresine yönlendirin.
2. Nginx yapılandırmasını düzenleyin ve her ikisini de değiştirin server_name <IP>; alan adınızla (<your-domain>) hem HTTP (port 80) hem de HTTPS (port 443) blokları için:
vim /etc/nginx/sites-available/zy
3. Install Certbot:
apt install -y certbot python3-certbot-nginx
4. Geçerli bir Let's Encrypt sertifikası oluşturmak için aşağıdaki komutu çalıştırın:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Nginx yapılandırmasındaki SSL yollarını değiştirin:
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. Değişiklikleri uygulamak için Nginx'i yeniden başlatın:
systemctl restart nginx
7. Update PUBLIC_BASE_URL in /opt/zy/env:
PUBLIC_BASE_URL=https://yourdomain.com
8. Değişiklikleri uygulamak için Zy'yi yeniden başlatın:
systemctl restart zy
9. Tarayıcınızı açın ve şu adresi ziyaret edin: https://yourdomain.com