Skip to content

Commit 6f79a1c

Browse files
committed
server: add (back) archive-warrior
This reverts commit 88c6d4a.
1 parent be28e24 commit 6f79a1c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

nixos/profiles/server.nix

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ let
9191
hbt-main-port = 3013;
9292
hbt-banana-port = 3014;
9393

94+
warrior-port = 3015;
95+
warrior-hostname = "warrior.wiro.world";
96+
9497
prometheus-port = 9001;
9598
prometheus-node-exporter-port = 9002;
9699
headscale-metrics-port = 9003;
@@ -283,6 +286,13 @@ in
283286
virtualHosts."banana.hypixel-bank-tracker.xyz".extraConfig = ''
284287
reverse_proxy http://localhost:${toString hbt-banana-port}
285288
'';
289+
290+
virtualHosts.${warrior-hostname}.extraConfig = ''
291+
forward_auth localhost:${toString authelia-port} {
292+
uri /api/authz/forward-auth
293+
}
294+
reverse_proxy http://localhost:${toString warrior-port}
295+
'';
286296
};
287297

288298
age.secrets.pds-env.file = ../../secrets/pds-env.age;
@@ -601,7 +611,6 @@ in
601611
];
602612
};
603613

604-
605614
notifier.smtp = {
606615
address = "smtp://smtp.resend.com:2587";
607616
username = "resend";
@@ -710,5 +719,11 @@ in
710719
port = hbt-banana-port;
711720
environmentFile = config.age.secrets.hypixel-bank-tracker-banana.path;
712721
};
722+
723+
virtualisation.oci-containers.containers.archive-warrior = {
724+
image = "atdr.meo.ws/archiveteam/warrior-dockerfile";
725+
ports = [ "127.0.0.1:${toString warrior-port}:8001" ];
726+
pull = "newer";
727+
};
713728
};
714729
}

0 commit comments

Comments
 (0)