refactor(service): restructure bluesky PDS service configuration

This commit is contained in:
Jo 2024-10-27 21:42:54 +01:00
parent 66c86213d9
commit 7afe075c1d
2 changed files with 7 additions and 3 deletions

View file

@ -19,7 +19,10 @@ in {
};
systemd.tmpfiles.rules = [
"d /var/lib/containers/bluesky-pds 0700 root root -"
"d /var/lib/containers/bluesky 0700 root root -"
"d /var/lib/containers/bluesky/pds 0700 root root -"
"d /var/lib/containers/bluesky/pds/data 0700 root root -"
"d /var/lib/containers/bluesky/pds/blobs 0700 root root -"
];
virtualisation.oci-containers.containers.bluesky-pds = {
@ -32,11 +35,11 @@ in {
labels = {
"traefik.enable" = "true";
"traefik.http.routers.bluesky-pds.entrypoints" = "websecure";
"traefik.http.routers.bluesky-pds.rule" = "Host(`bsky.thevoid.cafe`)";
"traefik.http.routers.bluesky-pds.rule" = "Host(`*.bsky.thevoid.cafe`)";
"traefik.http.services.bluesky-pds.loadbalancer.server.port" = "2583";
};
volumes = [
"/var/lib/containers/bluesky-pds:/pds"
"/var/lib/containers/bluesky/pds:/pds"
];
extraOptions = ["--network=proxy"];
};

View file

@ -49,6 +49,7 @@
vaultwarden.enable = true;
homepage.enable = true;
duckdns.enable = true;
bluesky.pds.enable = true;
};
};