Web Access
URL: https://<IP>/
HTTP port 80 redirects to HTTPS 443.
Default account:
- Username:
owner - Password:
owner123
중요: 웹 인터페이스에서 기본 비밀번호를 즉시 변경하세요.
Environment Configuration
File: /opt/zy/.env
환경 변수를 업데이트하려면 다음을 편집하세요. .env 그리고 서비스를 재시작합니다:
systemctl restart zy.service
주요 파일 및 디렉터리
- Zy binary:
/opt/zy/zy - 환경 변수 (API 토큰, 공개 URL):
/opt/zy/.env - Systemd unit:
/etc/systemd/system/zy.service - Nginx 사이트 설정:
/etc/nginx/sites-available/zy - Nginx 사이트 활성화됨:
/etc/nginx/sites-enabled/zy - 자체 서명 SSL 인증서:
/etc/nginx/ssl/
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
도메인으로 SSL 활성화하기
1. 도메인을 서버 IP로 연결합니다.
2. Nginx 설정을 편집하여 server_name <IP>; 을 실제 도메인으로 교체합니다 (<your-domain>) HTTP (포트 80) 및 HTTPS (포트 443) 블록 모두에 적용합니다:
vim /etc/nginx/sites-available/zy
3. Install Certbot:
apt install -y certbot python3-certbot-nginx
4. 다음 명령어를 실행하여 유효한 Let's Encrypt 인증서를 발급받습니다:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Nginx 설정의 SSL 경로를 교체합니다:
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. 변경 사항을 적용하기 위해 Nginx를 재시작합니다:
systemctl restart nginx
7. Update PUBLIC_BASE_URL in /opt/zy/env:
PUBLIC_BASE_URL=https://yourdomain.com
8. 변경 사항을 적용하려면 Zy를 재시작하세요:
systemctl restart zy
9. 브라우저를 열고 다음 주소로 접속하세요: https://yourdomain.com