Accessing Immich
- 처음으로 등록하는 사용자가 관리자 계정이 됩니다.
- 관리자 계정으로 다른 사용자를 애플리케이션에 추가할 수 있습니다.
- 관리자 계정을 등록하려면 아래 주소의 웹 애플리케이션에 접속하세요.
https://<IP>그런 다음 시작하기 버튼을 클릭하세요. - 자체 서명 인증서 경고가 나타나면 그냥 수락하고 진행하세요.
주요 파일 및 디렉토리
- Installation directory:
/root/immich - 설치 프로그램이 생성하는 환경 변수:
/root/immich/.env - Docker Compose 설정:
/root/activepieces/docker-compose.yml - 로컬 SSL 인증서 및 개인 키:
/etc/nginx/ssl/fullchain.crt&/etc/nginx/ssl/privkey.key - Nginx 리버스 프록시 설정:
/etc/nginx/sites-available/immich.conf - Nginx 활성화 심볼릭 링크:
/etc/nginx/sites-enabled/immich.conf
도메인으로 SSL 활성화하기
1. 도메인을 서버 IP로 연결합니다.
2. Nginx 설정을 편집하여 server_name <IP>; 을 실제 도메인으로 교체합니다 (<your-domain>) HTTP (포트 80) 및 HTTPS (포트 443) 블록 모두에 적용합니다:
vim /etc/nginx/sites-available/immich.conf
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 경로를 교체하세요 (TLS 섹션):
vim /etc/apache2/sites-available/immich.conf
# Before:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/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