Web Erişimi
URL: https://<IP>/
HTTP bağlantı noktası 80 HTTPS'ye yönlendirir 443.
Varsayılan hesap:
- Kullanıcı adı:
owner - Şifre:
owner123
Önemli: Web arayüzünde varsayılan şifreyi hemen değiştirin.
Ortam Yapılandırması
Dosya: /opt/zy/.env
Ortam değişkenlerini güncellemek için, .env ve hizmeti yeniden başlatın:
systemctl restart zy.service
Önemli Dosyalar ve Dizinler
- Zy ikili:
/opt/zy/zy - Ortam değişkenleri (API jetonu, genel URL):
/opt/zy/.env - Systemd birimi:
/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 Hizmet 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 Etki Alanı ile SSL'yi 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 (bağlantı noktası 80) hem de HTTPS (bağlantı noktası 443) blokları için:
vim /etc/nginx/sites-available/zy
3. Certbot'u yükleyin:
apt install -y certbot python3-certbot-nginx
4. Geçerli bir Lets 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ında 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. Güncelleme PUBLIC_BASE_URL içinde /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