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