การเข้าถึงอิมมิช
- ผู้ใช้รายแรกที่ลงทะเบียนจะเป็นผู้ใช้ที่เป็นผู้ดูแลระบบ
- ผู้ใช้ที่เป็นผู้ดูแลระบบจะสามารถเพิ่มผู้ใช้รายอื่นในแอปพลิเคชันได้
- หากต้องการลงทะเบียนสำหรับผู้ใช้ที่เป็นผู้ดูแลระบบ ให้เข้าสู่เว็บแอปพลิเคชันที่
https://<IP>และคลิกที่ปุ่มเริ่มต้นใช้งาน - หากคำเตือนใบรับรองที่ลงนามด้วยตนเองปรากฏขึ้น เพียงยอมรับเพื่อดำเนินการต่อ
ไฟล์และไดเรกทอรีที่สำคัญ
- ไดเรกทอรีติดตั้ง:
/root/immich - ตัวแปรสภาพแวดล้อมที่สร้างโดยโปรแกรมติดตั้ง:
/root/immich/.env - การกำหนดค่าDockerเขียน:
/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 ของ server
2. แก้ไข config ของ Nginx และเปลี่ยนทั้งคู่ server_name <IP>; กับโดเมนของคุณ (<your-domain>) สำหรับทั้ง HTTP (port 80) และ HTTPS (port 443) blocks:
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. แทนที่เส้นทาง 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. เปิด browser และไปที่: https://yourdomain.com