การเข้าถึงอิมมิช
- ผู้ใช้งานคนแรกที่ลงทะเบียนจะเป็นผู้ดูแลระบบ
- ผู้ดูแลระบบจะสามารถเพิ่มผู้ใช้รายอื่นเข้าสู่แอปพลิเคชันได้
- หากต้องการลงทะเบียนเป็นผู้ดูแลระบบ โปรดเข้าใช้งานเว็บแอปพลิเคชันที่
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 reverse proxy:
/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. รันคำสั่งต่อไปนี้เพื่อสร้างใบรับรอง Let's Encrypt ที่ถูกต้อง:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. แทนที่เส้นทาง SSL ในไฟล์การตั้งค่า Nginx (ส่วน 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