입장
- 아무런 문제 없이 제대로 작동하기 시작하려면 시간이 좀 걸릴 수 있습니다.
- 웹 UI:
https://<server-ip> - SSL 경고 수락 (자체 서명 인증서).
- 설치 시 제공한 관리자 사용자 이름과 비밀번호를 사용하여 로그인합니다.
- 로그인 자격 증명은 다음 위치에 저장됩니다.
/root/.cloudzy-creds
중요한 파일과 디렉토리
- 애플리케이션 루트:
/root/dashy/ - Dashy 구성 파일:
/root/dashy/config.yml - Docker Compose 파일:
/root/dashy/docker-compose.yml - 저장된 관리자 자격 증명(읽기 전용):
/root/.cloudzy-creds - Nginx 사이트 구성:
/etc/nginx/sites-available/dashy - 활성화된 Nginx 사이트:
/etc/nginx/sites-enabled/dashy - TLS 인증서:
/etc/nginx/ssl/fullchain.pem - TLS 개인 키:
/etc/nginx/ssl/privkey.pem
서비스 관리
컨테이너 상태를 확인하세요.
docker compose -f /root/dashy/docker-compose.yml ps
다시 시작:
docker compose -f /root/dashy/docker-compose.yml restart
로그 보기:
docker compose -f /root/dashy/docker-compose.yml logs -f
도메인으로 SSL 활성화
1. 도메인을 서버 IP로 지정하세요.
2. Nginx 설정 편집 및 둘 다 교체 server_name <IP>; 도메인으로 (<your-domain>) HTTP (포트 80)와 HTTPS (포트 443) 블록 모두:
vim /etc/nginx/sites-available/dashy
3. 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/dashy
# 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. 브라우저를 열고 방문: https://yourdomain.com