diff options
author | lassulus <git@lassul.us> | 2023-07-28 23:59:58 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-07-28 23:59:58 +0200 |
commit | 02e790c9fb6965e28f1573841181f610ff1599eb (patch) | |
tree | 5462ffe78c3708806821d893baa6a2c81137812f /makefu/2configs/deployment/docker | |
parent | fd07efa9e97b0984856a97a44ad0b97130db92f7 (diff) | |
parent | 3f37acf6f9ea4af21195cd7b0a37ba359105a69d (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/deployment/docker')
-rw-r--r-- | makefu/2configs/deployment/docker/archiveteam-warrior.nix | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/makefu/2configs/deployment/docker/archiveteam-warrior.nix b/makefu/2configs/deployment/docker/archiveteam-warrior.nix deleted file mode 100644 index 0069e4530..000000000 --- a/makefu/2configs/deployment/docker/archiveteam-warrior.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ lib, ... }: -with lib; -let - port = ident: toString (28000 + ident); - instances = [ 1 2 3 4 5 6 7 8 9 ]; -in { - services.nginx.recommendedProxySettings = true; - services.nginx.virtualHosts."warrior.gum.r".locations = let - # TODO location "/" shows all warrior instances - proxy = ident: - { - "/warrior${toString ident}/" = { - proxyPass = "http://localhost:${port ident}/"; - # rewrite ^/info /warrior${toString ident}/info; - extraConfig = '' - sub_filter "http://warrior.gum.r/info" "http://warrior.gum.r/warrior${toString ident}/info"; - sub_filter_once off; - ''; - }; - - }; - in - foldl' mergeAttrs {} (map proxy instances); - virtualisation.oci-containers.containers = let - container = ident: - { "archiveteam-warrior${toString ident}" = { - image = "archiveteam/warrior-dockerfile"; - ports = [ "127.0.0.1:${port ident}:8001" ]; - environment = { - DOWNLOADER = "makefu"; - SELECTED_PROJECT = "auto"; - CONCURRENT_ITEMS = "6"; - WARRIOR_ID = toString ident; - }; - }; - }; - in - foldl' mergeAttrs {} (map container instances); -} |