尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗This repository contains the Infrastructure-as-Code (IaC) for deploying a self-hosted media stack on an Intel N100 Mini-PC running Debian 13 "Trixie". The architecture emphasizes zero-trust micro-segmentation, atomic hardlinks for media management, and hardware-accelerated transcoding.
This project implements a robust, spec-driven media server solution designed for resilience and efficient media processing. It leverages Docker Compose for service orchestration and Ansible for host provisioning, adhering to strict architectural and security guidelines.
CONSTITUTION.md, PRODUCT_SPECIFICATION.md, ARCHITECTURE.md).mediasvc system user with UID/GID 5000./opt/mediastack/appdata/.The media stack consists of the following services, categorized by their Bounded Contexts:
The system mandates a single root directory (/opt/mediastack/) for all media data to enable Atomic Hardlinks (instant, zero-space moves).
/opt/mediastack/
├── docker-compose.yml
├── .env
├── appdata/ <-- Config state (Must reside on fast SSD)
│ ├── jellyfin/
│ ├── radarr/
│ └── ...
└── data/ <-- The Media Payload (Resides on High-Capacity Drive)
├── usenet/ <-- SABnzbd active downloads
└── media/
├── movies/ <-- Final destination for Radarr
└── tv/ <-- Final destination for Sonarr
Before running Ansible, the Intel N100 Mini-PC must be manually prepared:
useradd -m -s /bin/bash ansible
passwd ansible
usermod -aG sudo ansible
ssh-copy-id ansible@<host-ip>
lsblk
# Note the path, e.g., /dev/sdb. This is used in the inventory.
ls -l /dev/dri/renderD128
Ensure your control machine has Ansible installed along with the required collections:
ansible-galaxy collection install community.general ansible.posix community.docker ansible.utils
Python dependency: the
ansible.utilscollection'sipaddrfilter (used for automatic LAN subnet detection) requires thenetaddrPython package in your Ansible control environment (pip install netaddr, orpipx inject ansible-core netaddrwhen Ansible runs from pipx).
Clone the repository:
git clone https://github.com/MelvinLoos/CineVault.git
cd CineVault
Inventory: Edit ansible/inventory/hosts.ini and ensure media_drive_device matches your drive path from step 1.4.
Bootstrapping (Day 1 vs. Day 2)
- Day 1 (Bootstrap): The Host does not run Avahi/mDNS yet, so
mediacenter.localcannot resolve. Target its DHCP address directly for the first run, e.g.ansible-playbook -i "192.168.1.150," -u ansible ansible/playbooks/provision_host.yml -K.- Day 2 (Normal Ops): The playbook sets the role-based hostname and installs Avahi. Afterwards, point the inventory at the mDNS name — resilient to DHCP address changes:
[the_host] mediacenter.local ansible_user=ansible media_drive_device=/dev/sdb
Environment Variables: Copy .env.example to .env and set your TZ and CLOUDFLARED_TOKEN.
cp .env.example .env
Run the master provision playbook. This handles system updates, user creation, filesystem formatting, security hardening, and starts the media stack.
ansible-playbook -i ansible/inventory/hosts.ini ansible/playbooks/provision_host.yml -K
Note on Ingress: By default, the Cloudflare Tunnel container is in the
ingressprofile. To ensure it starts if you run compose manually, usedocker compose --profile ingress up -d. The Ansible playbook handles this automatically.
Once deployed, the following services are available on The Host:
| Service | Port | Bounded Context | Ingress Access via Tunnel |
|---|---|---|---|
| Homepage | 80 | Dashboard | Yes (dashboard.example.com — served by homepage-remote) |
| Seerr | 5055 | Request / Identity | Yes (request.example.com) |
| Jellyfin | 8096 | Delivery | Yes (example.com) |
| Wizarr | 5690 | Request / Identity | Yes (join.example.com) |
| Radarr | 7878 | Acquisition | No |
| Sonarr | 8989 | Acquisition | No |
| Bazarr | 6767 | Acquisition | No |
| Prowlarr | 9696 | Indexers | No |
| Spotweb | 8085 | Indexers | No |
| SABnzbd | 8080 | Processing | No |
| qBittorrent | 8090 | Processing | No |
| Tdarr Server | 8266 | Processing |
The dashboard runs twice: the LAN instance (
mediacenter.local:80) keeps local links, whiledashboard.example.com(Cloudflare Access-protected) is served by the internal-onlyhomepage-remoteinstance, whose tiles link to the public*.example.comhostnames — see Homepage Dashboard and Observability Dashboard. Dozzle remains a LAN-only operational tool (WebUI port UFW-scoped to the local subnet,mediacenter.local:8888); Uptime Kuma is reachable atstatus.example.combehind Cloudflare Access.
This project uses Molecule with Testinfra to validate the infrastructure against the specifications.
To run tests:
cd CineVault
molecule test
Tests verify:
mediasvc ownership)This project is licensed under the MIT License - see the LICENSE file for details.
/api/mcpNo (Local /24 only — laptop GPU node control plane) |
| Maintainerr | 6246 | Maintenance | No (Local /24 only — library cleanup WebUI) |
| Dozzle | 8888 | Observability | No (Local /24 only — log viewer WebUI) |
| Uptime Kuma | 3001 | Observability | Yes (status.example.com) |
| SingPulse | 3000 | Entertainment | Yes (sing.example.com — Party Token, no Access policy; Local /24 for The Stage) |