Add screenshot and registry deployment to README
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b204dd70ed
commit
7b45a986d6
2 files changed
+17
-3
No files matched your search
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
純靜態網站:沒有後端、沒有資料、不掛載任何路徑。
|
純靜態網站:沒有後端、沒有資料、不掛載任何路徑。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## 檔案
|
## 檔案
|
||||||
|
|
||||||
| 檔案 | 說明 |
|
| 檔案 | 說明 |
|
||||||
@@ -26,14 +28,26 @@ docker run -d --name simplerickroll \
|
|||||||
|
|
||||||
打開 <http://127.0.0.1:1000/>。
|
打開 <http://127.0.0.1:1000/>。
|
||||||
|
|
||||||
|
## 發布 image
|
||||||
|
|
||||||
|
Image 放在 Gitea 內建的 container registry。
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker login gitea.sthkm3.org
|
||||||
|
docker build -t gitea.sthkm3.org/sthkm3/simplerickroll:1.0.0 .
|
||||||
|
docker push gitea.sthkm3.org/sthkm3/simplerickroll:1.0.0
|
||||||
|
```
|
||||||
|
|
||||||
## 部署(TrueNAS SCALE Apps)
|
## 部署(TrueNAS SCALE Apps)
|
||||||
|
|
||||||
|
Apps → Discover Apps → ⋮ → Install via YAML。
|
||||||
|
|
||||||
容器只接在 `cloudflared_proxy` 網路上,不對外開 port,只有 cloudflared 能連到。Cloudflare Tunnel 的 service 設為 `http://rickroll:1000`。
|
容器只接在 `cloudflared_proxy` 網路上,不對外開 port,只有 cloudflared 能連到。Cloudflare Tunnel 的 service 設為 `http://rickroll:1000`。
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
rickroll:
|
rickroll:
|
||||||
build: https://<gitea>/sthkm3/SimpleRickroll.git#<release-tag>
|
image: gitea.sthkm3.org/sthkm3/simplerickroll:1.0.0
|
||||||
container_name: rickroll
|
container_name: rickroll
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
read_only: true
|
read_only: true
|
||||||
@@ -49,11 +63,11 @@ networks:
|
|||||||
external: true
|
external: true
|
||||||
```
|
```
|
||||||
|
|
||||||
偶爾重新 build 以取得 nginx 安全更新。
|
更新時推新的 tag,再到 TrueNAS 編輯 app 改 `image:` 的 tag。偶爾重新 build 以取得 nginx 安全更新。
|
||||||
|
|
||||||
## 更換影片
|
## 更換影片
|
||||||
|
|
||||||
影片直接進 git,**不要用 Git LFS**(從 git URL build 時不會抓 LFS 檔案)。保持 H.264 + AAC 的 mp4,Safari / iOS 才能播。
|
影片直接進 git,不用 Git LFS,clone 下來就能直接 build。保持 H.264 + AAC 的 mp4,Safari / iOS 才能播。
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ffmpeg -i source.mp4 -vf "scale=-2:720:flags=lanczos" -r 60 \
|
ffmpeg -i source.mp4 -vf "scale=-2:720:flags=lanczos" -r 60 \
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 792 KiB |
Reference in new issue
Block a user