29 changed files with 198 additions and 113 deletions
@ -0,0 +1,16 @@ |
|||
[Unit] |
|||
Description=Discover the virtiofs tags made available by the hypervisor |
|||
RequiresMountsFor=/run |
|||
ConditionPathIsMountPoint=/run |
|||
|
|||
# Unless DefaultDependencies= is set to false, service units will implicitly |
|||
# have dependencies of type Requires= and After= on basic.target as well as |
|||
# dependencies of type Conflicts= and Before= on shutdown.target. |
|||
# |
|||
# So, we need to set DefaultDependencies to "no" to break the ordering cycle. |
|||
DefaultDependencies=no |
|||
|
|||
[Service] |
|||
Type=oneshot |
|||
ExecStart=/bin/bash -Eeuo pipefail -c 'shopt -s nullglob; mkdir -p /run/quadlets/base/virtiofs; for tagfile in /sys/fs/virtiofs/*/tag; do tag=$(<"$tagfile"); echo -n > "/run/quadlets/base/virtiofs/$tag"; done' |
|||
RemainAfterExit=yes |
|||
@ -1,19 +0,0 @@ |
|||
server string = Storage |
|||
|
|||
[foo] |
|||
path = /data/foo |
|||
comment = Foo |
|||
valid users = @itix |
|||
write list = @itix |
|||
group = itix |
|||
directory mask = 0770 |
|||
create mask = 0660 |
|||
|
|||
[bar] |
|||
path = /data/bar |
|||
comment = Bar |
|||
valid users = @itix |
|||
write list = @itix |
|||
group = itix |
|||
directory mask = 0775 |
|||
create mask = 0664 |
|||
@ -0,0 +1,33 @@ |
|||
[Unit] |
|||
Description=Fully automatic cross-seeding for torrent trackers |
|||
Documentation=https://www.cross-seed.org/docs/basics/getting-started |
|||
Wants=network.target |
|||
After=network.target |
|||
RequiresMountsFor=/var/lib/virtiofs/ssd |
|||
RequiresMountsFor=/var/lib/virtiofs/hdd |
|||
|
|||
[Container] |
|||
ContainerName=cross-seed |
|||
|
|||
# Image |
|||
Image=cross-seed.image |
|||
AutoUpdate=registry |
|||
|
|||
# Security |
|||
User=10017 |
|||
Group=10000 |
|||
|
|||
# Storage |
|||
Volume=/var/lib/virtiofs/ssd/cross-seed/config:/config:z |
|||
Volume=/var/lib/virtiofs/hdd:/data:z |
|||
|
|||
# Network |
|||
AddCapability=CAP_NET_BIND_SERVICE |
|||
Network=host |
|||
|
|||
# Configuration |
|||
Environment=TZ=Etc/UTC HOME=/config |
|||
Exec=daemon |
|||
|
|||
[Install] |
|||
WantedBy=seedbox.target |
|||
@ -0,0 +1,6 @@ |
|||
[Unit] |
|||
Description=podman pull ghcr.io/cross-seed/cross-seed |
|||
Documentation=https://www.cross-seed.org/docs/basics/getting-started |
|||
|
|||
[Image] |
|||
Image=ghcr.io/cross-seed/cross-seed:latest |
|||
@ -0,0 +1,6 @@ |
|||
[Unit] |
|||
RequiresMountsFor=/var/lib/virtiofs/ssd |
|||
RequiresMountsFor=/var/lib/virtiofs/hdd |
|||
|
|||
[Container] |
|||
Volume=/var/lib/virtiofs/hdd:/data:z |
|||
@ -0,0 +1,2 @@ |
|||
[Unit] |
|||
# TODO: Désactiver cette unité. |
|||
@ -0,0 +1,13 @@ |
|||
http: |
|||
routers: |
|||
cross-seed: |
|||
rule: "Host(`cross-seed`)" |
|||
entryPoints: |
|||
- http |
|||
middlewares: |
|||
service: "cross-seed" |
|||
services: |
|||
cross-seed: |
|||
loadBalancer: |
|||
servers: |
|||
- url: "http://127.0.0.1:2468" |
|||
@ -1,22 +1,25 @@ |
|||
d$ /var/lib/virtiofs/data/storage 0755 0 0 - |
|||
d$ /var/lib/virtiofs/data/storage/media 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/storage/media/movies 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/storage/media/series 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/storage/media/music 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/storage/downloads 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/storage/torrents 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/storage/import 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/radarr 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/radarr/config 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/radarr/config/tmp 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/radarr/config/xdg 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/sonarr 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/sonarr/config 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/sonarr/config/tmp 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/sonarr/config/xdg 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/prowlarr 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/prowlarr/config 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/prowlarr/config/tmp 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/prowlarr/config/xdg 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/jellyfin 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/data/jellyfin/config 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/hdd/storage 0755 0 0 - |
|||
d$ /var/lib/virtiofs/hdd/storage/media 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/hdd/storage/media/movies 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/hdd/storage/media/series 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/hdd/storage/media/music 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/hdd/storage/downloads 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/hdd/storage/torrents 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/hdd/storage/seed 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/hdd/storage/import 0775 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/radarr 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/radarr/config 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/radarr/config/tmp 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/radarr/config/xdg 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/sonarr 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/sonarr/config 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/sonarr/config/tmp 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/sonarr/config/xdg 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/prowlarr 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/prowlarr/config 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/prowlarr/config/tmp 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/prowlarr/config/xdg 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/jellyfin 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/jellyfin/config 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/cross-seed 0700 10017 10000 - |
|||
d$ /var/lib/virtiofs/ssd/cross-seed/config 0700 10017 10000 - |
|||
|
|||
@ -0,0 +1,16 @@ |
|||
[Unit] |
|||
Description=Mount the "hdd" virtio filesystem |
|||
Requires=discover-virtiofs-tags.service |
|||
After=discover-virtiofs-tags.service |
|||
|
|||
# Only run if the "hdd" tag is present (as discovered by discover-virtiofs-tags.service) |
|||
ConditionPathExists=/run/quadlets/base/virtiofs/hdd |
|||
|
|||
[Mount] |
|||
What=hdd |
|||
Where=/var/lib/virtiofs/hdd |
|||
Type=virtiofs |
|||
Options=context=system_u:object_r:container_file_t:s0 |
|||
|
|||
[Install] |
|||
WantedBy=local-fs.target |
|||
@ -0,0 +1,16 @@ |
|||
[Unit] |
|||
Description=Mount the "ssd" virtio filesystem |
|||
Requires=discover-virtiofs-tags.service |
|||
After=discover-virtiofs-tags.service |
|||
|
|||
# Only run if the "ssd" tag is present (as discovered by discover-virtiofs-tags.service) |
|||
ConditionPathExists=/run/quadlets/base/virtiofs/ssd |
|||
|
|||
[Mount] |
|||
What=ssd |
|||
Where=/var/lib/virtiofs/ssd |
|||
Type=virtiofs |
|||
Options=context=system_u:object_r:container_file_t:s0 |
|||
|
|||
[Install] |
|||
WantedBy=local-fs.target |
|||
Loading…
Reference in new issue