尚未检测到更新。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) |