Accessing Immich
- 第一位注册的用户将成为管理员。
- 管理员可以向应用程序中添加其他用户。
- 要注册管理员账户,请访问以下网址打开 Web 应用:
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 配置(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