이밋 접근
- 최초로 등록하는 사용자가 관리자 사용자가 됩니다.
- 관리자 사용자는 애플리케이션에 다른 사용자를 추가할 수 있습니다.
- 관리자 사용자 등록을 위해 다음 웹 애플리케이션에 접속하십시오:
https://<IP>시작하기 버튼을 클릭하세요. - 자체 서명된 인증서 경고가 표시되면, 계속 진행하려면 단순히 수락하세요.
중요한 파일 및 디렉터리
- 설치 디렉터리:
/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. Certbot 설치:
apt install -y certbot python3-certbot-nginx
4. 유효한 Lets Encrypt 인증서를 생성하려면 다음 명령어를 실행하십시오:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Nginx 구성 파일(TLS 섹션)에서 SSL 경로 교체:
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