差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
| tech:immich [2025/03/22 12:07] – [安裝程序] jonathan | tech:immich [2025/09/03 15:15] (目前版本) – 設定 Google oAuth 認證方式 jonathan | ||
|---|---|---|---|
| 行 19: | 行 19: | ||
| wget https:// | wget https:// | ||
| </ | </ | ||
| + | * {{repo> | ||
| + | * {{repo> | ||
| * 修改 .env 內的密碼與網址設定 < | * 修改 .env 內的密碼與網址設定 < | ||
| : | : | ||
| 行 34: | 行 36: | ||
| </ | </ | ||
| - | ===== 開始使用 | + | ===== 常見問題 ===== |
| - | * Exp. http://192.168.11.202:2342/ 使用 admin / xxxxxxx 登入 | + | ==== 1. 中文搜尋結果不理想問題 |
| - | * 開始對 NAS 內的 LocalPhotos 建立索引 | + | * 主要是預設的 CLIP 模型 ViT-B-32__openai 中文支援度低, |
| + | * 處理方式如下 | ||
| + | - 找到 immich 的模型存放目錄 Exp. / | ||
| + | - 找到 Hugging Face 模型頁面 Exp. https://huggingface.co/ | ||
| + | - 透過 git 方式將模型下載到存放目錄 Exp. < | ||
| + | cd clip | ||
| + | git clone https://huggingface.co/ | ||
| + | </ | ||
| + | - 重起服務 < | ||
| + | docker compose down && docker compose up -d | ||
| + | </ | ||
| + | - 進入 immich 管理介面修改使用模型設定 | ||
| + | * 設定 | ||
| + | * ++看設定畫面|{{:tech:螢幕擷取畫面_2025-07-22_113547.png?1024|}}++ | ||
| + | - 重新執行全部智慧搜尋項目 : 任務 -> 智慧搜尋 -> 全部 | ||
| + | * ++看設定畫面|{{: | ||
| + | |||
| + | ==== 2. 設定 Google oAuth 認證方式 ===== | ||
| + | * 參考 - https:// | ||
| + | * Google 端設定 | ||
| + | - https:// | ||
| + | - 建立或選擇一個專案 Exp. ichiayi -> 選擇 API 和服務 -> oAuth 同意畫面 | ||
| + | - Google Auth Platform -> 用戶端 -> 建立用戶端 | ||
| + | - 應用程式類型 : 網頁應用程式 | ||
| + | - 名稱 : Exp. immich | ||
| + | - 已授權的 JavaScript 來源 : Exp. https:// | ||
| + | - 已授權的重新導向 URI : Exp. https:// | ||
| + | - 將產生的 ClientID 與 ClientSecret 記錄下來 | ||
| + | * Immich 端系統管理設定 | ||
| + | - admin -> 設定 -> 驗證設定 -> oAuth | ||
| + | - 使用 OAuth 登入 : 開啟 | ||
| + | - ISSUER_URL : https:// | ||
| + | - CLIENT_ID : 填上 Google 端產生的 ClientID Exp. 51xxxxxxx0-9xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxv.apps.googleusercontent.com | ||
| + | - CLIENT_SECRET : 填上 Google 端產生的 ClientSecret Exp. Gxxxxx-UxxxxxxxxxxPB_4xxxxxxxxxxxxz | ||
| + | - TOKEN_ENDPOINT_AUTH_METHOD : 選 client_secret_post | ||
| + | - SCOPE : openid email profile | ||
| + | - ID_TOKEN_SIGNED_RESPONSE_ALG : RS256 | ||
| + | - USERINFO_SIGNED_RESPONSE_ALG : none | ||
| + | - 請求逾時 : 30000 | ||
| + | - 儲存標籤宣告 : preferred_username | ||
| + | - 角色宣告 : immich_role | ||
| + | - 儲存配額宣告 : immich_quota | ||
| + | - 按鈕文字 : Login with OAuth | ||
| + | - 自動註冊 : 關閉 (避免閒雜人等加入使用) -> 表示系統管理者需要先建立使用者 Exp. Google 帳號 [email protected] 後, 這 Google 帳號才能透過 Google oAuth 方式登入 Immich | ||
| + | - 自動啟動 : 關閉 | ||
| + | - 覆蓋行動端重新導向 URI : 啟用 (如果要支援行動 APP) | ||
| + | - 行動端重新導向 URI : https:// | ||
| + | |||
| + | ==== 3. 已經存在的使用者設定連結 Google oAuth 認證方式 ===== | ||
| + | * 之前已經建立的使用者 Exp. [email protected] 想要使用 Google oAuth 帳號 Exp. [email protected] 登入 | ||
| + | - 先使用原本 [email protected] 登入 Immich 網站 | ||
| + | - 點右上角 ICON -> 帳號設定 | ||
| + | - 2FR OAuth -> 點連接 OAuth | ||
| + | - 會跳出 Google oAuth 帳號登入畫面進行登入 Exp. [email protected] | ||
| + | - 登出後, 在登入畫面選 Login with OAuth | ||
| + | - 跳出 Google oAuth 帳號登入畫面進行登入 Exp. [email protected] | ||
| + | - 登入後看到的是原本 [email protected] 的照片資料 | ||
| + | |||
| + | |||
| + | |||
| ===== 參考網址 ===== | ===== 參考網址 ===== | ||
| - | * https://docs.photoprism.app/getting-started/ | + | * https://github.com/immich-app/ |
| - | * https://www.hiroom2.com/2017/08/21/alpinelinux-3-6-cifs-utils-en/ | + | * https://github.com/tryweb/docker-compose/tree/main/ |
| + | * https:// | ||
| {{tag>AI 照片管理}} | {{tag>AI 照片管理}} | ||