diff --git "a/PM/epics/EN \350\213\261\346\226\207\347\266\262\347\253\231.md" "b/PM/epics/EN \350\213\261\346\226\207\347\266\262\347\253\231.md" index ce6034a..a4a6129 100644 --- "a/PM/epics/EN \350\213\261\346\226\207\347\266\262\347\253\231.md" +++ "b/PM/epics/EN \350\213\261\346\226\207\347\266\262\347\253\231.md" @@ -4,14 +4,33 @@ tags: --- - 交付 Richie - [ ] 網站工程 🔺 - - [ ] 確認上稿流程和各頁面現況 + - [x] Deploy 上正式站 ⏫ 📅 2026-01-06 ✅ 2026-01-06 + - [x] 確認上稿流程和各頁面現況,參考[這個 slide](https://docs.google.com/presentation/d/1zrpSarfDgg3QaUulRSJOs0VdVKPWYQPxvNcB08BHGXY/edit?slide=id.p9#slide=id.p9) ✅ 2026-01-06 + - [ ] 確認認證頁要怎麼進行 + - [ ] 把 member 搬過來看有沒有問題 + - [ ] 盤點缺少的頁面 - [ ] 測試資料替換正式上線資料 + - [ ] 表單的處理 相關 Issue - [[PM/tasks/tasks-2601020913 - EN 英文網站工程.md]] - [[task-2512090917 - EN網站Deploy]] +* About + * About AIA:缺 Quote,timeline 照片 + * People :需要全部 Board member 和 Executive 資料 + * https://en.aiacademy.tw/key-executives/ + * https://en.aiacademy.tw/board-members/ + * Partner with us:需要 Sponsor way, All sponsor information +* Impart + * Voice of Impact 要百工百業的 Impact 文案 + * Certification :本頁還沒出來 + * Report + + + + --- ![[AIA 英文官網|en.aiacademy.tw]] \ No newline at end of file diff --git "a/PM/epics/MIS \345\267\245\344\275\234.md" "b/PM/epics/MIS \345\267\245\344\275\234.md" index 5116d34..e0c1997 100644 --- "a/PM/epics/MIS \345\267\245\344\275\234.md" +++ "b/PM/epics/MIS \345\267\245\344\275\234.md" @@ -38,5 +38,5 @@ #### 交接 交接雜項 - [ ] 取消炳勛共用雲端硬碟權限 📅 2025-12-31 -- [ ] ben.wang@aiacademy.tw 轉寄 cshuai@aiacademy.tw 📅 2025-12-31 +- [x] ben.wang@sted.tw 轉寄 cshuai@sted.tw 📅 2025-12-31 ✅ 2026-01-06 - [ ] 交接工作:所有 wp 管理員地址要改 📅 2025-12-31 \ No newline at end of file diff --git "a/PM/epics/\346\236\266\345\205\254\345\217\270\347\232\204 frp (\350\207\252\345\273\272ngrok).md" "b/PM/epics/\346\236\266\345\205\254\345\217\270\347\232\204 frp (\350\207\252\345\273\272ngrok).md" index e11fbc7..ada5b41 100644 --- "a/PM/epics/\346\236\266\345\205\254\345\217\270\347\232\204 frp (\350\207\252\345\273\272ngrok).md" +++ "b/PM/epics/\346\236\266\345\205\254\345\217\270\347\232\204 frp (\350\207\252\345\273\272ngrok).md" @@ -13,11 +13,11 @@ https://github.com/junsuwhy/frp-aia 目前已經寫好 go 和安裝檔了,還差很多很多測試。 ```bash -curl -fsSL https://install.test7362.aiacademy.tw/frp-docker/install-files/install.sh | bash | sh -s --config https://install.test7362.aiacademy.tw/frp-docker/install-files/frpc-config.json +curl -fsSL https://install.test7362.aiacademy.tw/test-aia-tw-frp-install/install.sh | bash -s -- --config https://install.test7362.aiacademy.tw/test-aia-tw-frp-install/frpc-config.json ``` ```powershell -iex "& { $(irm https://install.test7362.aiacademy.tw/frp-docker/install-files/install.ps1) } -ConfigUrl 'https://install.test7362.aiacademy.tw/frp-docker/install-files/frpc-config.json'" +iex "& { $(irm https://install.test7362.aiacademy.tw/test-aia-tw-frp-install/install.ps1) } -ConfigUrl 'https://install.test7362.aiacademy.tw/test-aia-tw-frp-install/frpc-config.json'" ``` @@ -26,4 +26,19 @@ iex "& { $(irm https://install.test7362.aiacademy.tw/frp-docker/install-files/in 2. Bash 沒建過 docker compose image 沒辦法啟用 ## 2026-01-05 -整理了資料夾,請繼續 \ No newline at end of file +整理了資料夾,請繼續 +改過之後如果執行 push.sh 會送到 frp-server ,以前是 frp-docker 資料夾。 + + +Windows 和 Mac 有一些條件,要用 + +``` +[[proxies]] +name = 'prev' +type = 'http' +localIP = 'host.docker.internal' +localPort = 3002 +customDomains = ['prev.domain.ccc'] +``` + +這種 IP 才可以,不能用 127.0.0.1 ,之後再改 \ No newline at end of file diff --git "a/PM/tasks/task-2512090917 - EN\347\266\262\347\253\231Deploy.md" "b/PM/tasks/task-2512090917 - EN\347\266\262\347\253\231Deploy.md" index c7f064d..660c795 100644 --- "a/PM/tasks/task-2512090917 - EN\347\266\262\347\253\231Deploy.md" +++ "b/PM/tasks/task-2512090917 - EN\347\266\262\347\253\231Deploy.md" @@ -82,10 +82,33 @@ npm run build  # 執行 vite build - 需要清除 Laravel 的 view cache:`php artisan view:clear` - 或重新建置後重啟 PHP-FPM:執行 `docker restart php8.2` -## 工作項目 +## Deploy到 liveserver2024 + +### 準備 php8.2 執行環境(容器分離版) +1. git clone 整個 [repository](https://github.com/junsuwhy/official-en-aia) 下來到 www/official-en-aia,並且切到最新的 Branch +2. 新增 docker compose 附加檔案 docker-compose.official-en.yml,`docker compose -f docker-compose.official-en.yml up -d` +3. 進 php8.2 container 到 laravel 下面執行 `composer install` +4. laravel 的 Vite 要設允許的網址 + +### 建立資料庫 +1. create database +2. create user +3. 下 `php artisan migrate` +4. 設定 `.env` + +## 前端環境 + +1. 到 storybook, web, laravel 三個目錄下執行 npm install (可以跑的環境 npm 版本是 11.6.2 ,node 是 v24.12.0,其他環境不確定) +2. 在 laravel 執行 npm run build + +### 啟動伺服器(Apache2) + +1. 這些資料夾要設 www-data 權限: `chown -R www-data:www-data {storage/framework,storage/logs,bootstrap/cache}` +2. `docker exec -it apache2 bash -c "a2ensite official-en.aiacademy.tw.conf && apachectl graceful"` +3. DNS 要設好 +4. [[VPS 主機管理#建立 SSL 憑證|設定 SSL]] +5. 測試看看 -- [ ] 開始轉 Filament -- [ ] ## 相關資料/連結 diff --git "a/SOP/MIS/VPS \344\270\273\346\251\237\347\256\241\347\220\206.md" "b/SOP/MIS/VPS \344\270\273\346\251\237\347\256\241\347\220\206.md" index 5d7ae2a..dfaaebd 100644 --- "a/SOP/MIS/VPS \344\270\273\346\251\237\347\256\241\347\220\206.md" +++ "b/SOP/MIS/VPS \344\270\273\346\251\237\347\256\241\347\220\206.md" @@ -12,6 +12,14 @@ # 放入 public key ,以便從遠端登入 ``` +## Apache2伺服器相關 + +### 建立 SSL 憑證 + +1. `/root/.acme.sh/acme.sh --issue -d official-en.aiacademy.tw -w /root/liveserver2024/data/www/official-en-aia/laravel/public --debug --use-wget` +2. 設定 -ssl.conf ,換成上述 domain 的資訊 +3. 到 apache2 container 裡面啟動 + ## 防火牆 ### fail2ban diff --git a/base/assets/hosts/LAN/10.17.6.47.md b/base/assets/hosts/LAN/10.17.6.47.md new file mode 100644 index 0000000..e69de29 diff --git a/base/assets/hosts/vults/202.182.123.223.md b/base/assets/hosts/vults/202.182.123.223.md index 290faee..d3e826e 100644 --- a/base/assets/hosts/vults/202.182.123.223.md +++ b/base/assets/hosts/vults/202.182.123.223.md @@ -43,8 +43,15 @@ root@Liveserver2024:~/liveserver2024/bash_script/apache2# docker exec -it apache root@Liveserver2024:~/liveserver2024/bash_script/apache2# docker exec -it apache2 bash -c "apachectl graceful" ``` +## 開新站(舊 Apache2 方式) + + ## fail2ban 相關 監控路徑在 `/etc/fail2ban/paths-common.conf` -https://claude.ai/chat/216c617e-2b2d-460c-962d-eddd98238161 \ No newline at end of file +https://claude.ai/chat/216c617e-2b2d-460c-962d-eddd98238161 + +舊的 NPM 版本: `6.14.6` +Node 版本是 v12.18.4 + diff --git a/diary/2026-01-06.md b/diary/2026-01-06.md new file mode 100644 index 0000000..cc0dd65 --- /dev/null +++ b/diary/2026-01-06.md @@ -0,0 +1,54 @@ +> [!NOTE] 每天注意事項 +> +> 每天上班前在路上做的事: +> - 想想今天即將要進行的工作內容 +> +> 每天下班前 30 分鐘做的事: +> * 整理今日結果 +> * 看今天的成果是否要 Deliever 給 Richie + + +> [!Danger] 今日工項 +> ### + +## Tasks +```tasks +path includes epics/ISO27001 +not done +``` + +```tasks +path includes epics/MIS +not done +due on or before today +group by heading +``` + +[[EN 英文網站]]事項 +```tasks +path includes PM/epics/EN +not done +``` + +- [ ] 開發工作 + - [x] [[架公司的 frp (自建ngrok)]] FRPS Client ✅ 2026-01-06 + - [x] github copilot 換成 Cursor 12:00 +- [x] 改寫 SOP +- [ ] ISO: + - [x] 記錄完昨天國寶前輩的筆記,在 Google文件 ✅ 2026-01-06 + - [ ] 整理 ISO 需要的先備資料 🛫 2026-01-07 + +## Note + +### Log +- [開工時間::09:09] + +| time | 預計 | 實際 | 備註、狀況 | +| :---------- | ----- | ---- | ------------------------------------------------------------------- | +| 09:00-10:00 | 早餐+EN | | | +| 10:00-11:00 | EN | EN | 解決問題:建有 composer 環境的 php image | +| 11:00-12:00 | FRPC | EN | 解決問題:切到正確的 Branch、註冊 ssl | +| 13:00-14:00 | ISO | FRPC | 完成 frpc 的撰寫 | +| 14:00-15:00 | ISO | FRPC | 最後測試,然後加一個[說明網頁](https://work-doc.aiacademy.tw/frp_tool_guide.html) | +| 15:00-16:00 | ISO | EN | 整理 EN 站的資料 | +| 16:00-17:00 | ISO | | 整理 42001 的筆記 | diff --git "a/note/20260105-\350\267\237\345\234\213\345\257\266\345\211\215\350\274\251\350\201\21242001.md" "b/note/20260105-\350\267\237\345\234\213\345\257\266\345\211\215\350\274\251\350\201\21242001.md" new file mode 100644 index 0000000..5f9b3d2 --- /dev/null +++ "b/note/20260105-\350\267\237\345\234\213\345\257\266\345\211\215\350\274\251\350\201\21242001.md" @@ -0,0 +1,4 @@ +42001 的起始是德國工業標準地圖(2019),也是寫工業 4.0 的廠商 +認為所有搭載AI的產品都要有規範 +【LANCÔME 蘭蔻】AI粉餅 +