50% off 所有套餐限时优惠,起价 $2.48/mo
Immich

Immich

Immich 是一款自托管的照片和视频备份工具,可替代 Gooogle Photos,支持人脸识别、物体检测、手机自动上传和相册共享。它是 GitHub 上获星最多的自托管照片项目,已累计超过 50,000 个 Star,并持续每周发布更新。

Version

2

Operating System

Ubuntu Server 24.04 LTS

Min. RAM

4 GB

IP Types

IPV4,IPV6

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

更多文件托管内容

Related apps.

立即部署 Immich。 From $2.48/mo.