mirror of
https://github.com/MagicBOTAlex/nixos-server.git
synced 2026-05-06 18:12:30 +02:00
sync
This commit is contained in:
parent
f2bb1de7d8
commit
a9551f7ba0
6 changed files with 39 additions and 4 deletions
26
vms/kube-daddy/jelly-forward.nix
Normal file
26
vms/kube-daddy/jelly-forward.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
systemd.services."jelly-forward" = {
|
||||
description = "forwards jellyfin running on kubernetes";
|
||||
|
||||
after = [
|
||||
"network-online.target"
|
||||
"microvm@kubernetes.service"
|
||||
];
|
||||
wants = [ "network-online.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
script = ''
|
||||
sleep 5
|
||||
${pkgs.kubernetes}/bin/kubectl port-forward jellyfin -n argocd 8096:8096 --address 0.0.0.0 || true
|
||||
'';
|
||||
|
||||
serviceConfig = {
|
||||
User = "root";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue