IT-Tools upgrade
This commit is contained in:
parent
e604747b9f
commit
69dc3f3074
@ -1,6 +1,7 @@
|
||||
{lib, ...}: {
|
||||
imports = [
|
||||
./baserow.nix
|
||||
./it-tools.nix
|
||||
./librechat.nix
|
||||
./litellm.nix
|
||||
./librechat-dev.nix
|
||||
|
||||
@ -1,28 +1,11 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
{lib, ...}: let
|
||||
serviceName = "it-tools";
|
||||
portUtils = import ../../../lib/port-utils.nix {inherit lib;};
|
||||
portUtils = import ../../../../lib/port-utils.nix {inherit lib;};
|
||||
servicePort = portUtils.getPort serviceName "AZ-CLD-1";
|
||||
in {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts.${serviceName} = {
|
||||
listen = [
|
||||
{
|
||||
addr = "127.0.0.1";
|
||||
port = servicePort;
|
||||
}
|
||||
];
|
||||
locations."/" = {
|
||||
root = "${pkgs.it-tools}/lib";
|
||||
index = "index.html";
|
||||
tryFiles = "$uri $uri/ /index.html";
|
||||
};
|
||||
};
|
||||
virtualisation.oci-containers.containers.${serviceName} = {
|
||||
image = "docker.io/sharevb/it-tools:latest";
|
||||
ports = ["127.0.0.1:${toString servicePort}:8080"];
|
||||
};
|
||||
|
||||
# Traefik configuration
|
||||
@ -3,7 +3,6 @@
|
||||
./containers
|
||||
|
||||
./gitea.nix
|
||||
./it-tools.nix
|
||||
./metabase.nix
|
||||
./n8n.nix
|
||||
./ntfy.nix
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user