From ff8eee35b1de883a8b64da21a5f8b600abc5bf0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Thu, 29 Aug 2024 15:28:38 +0200 Subject: [PATCH] chore: remove unused teedy setup --- acme.nix | 1 - configuration.nix | 1 - nginx.nix | 7 ------- teedy-initdb.sql | 5 ----- teedy.nix | 26 -------------------------- 5 files changed, 40 deletions(-) delete mode 100644 teedy-initdb.sql delete mode 100644 teedy.nix diff --git a/acme.nix b/acme.nix index 14e6513..661a7de 100644 --- a/acme.nix +++ b/acme.nix @@ -7,7 +7,6 @@ "meta.sourcehut.${base-domain}" "git.sourcehut.${base-domain}" "docspell.${base-domain}" - "teedy.${base-domain}" "paperless.${base-domain}" ]; acceptTerms = true; diff --git a/configuration.nix b/configuration.nix index b34c325..c042008 100644 --- a/configuration.nix +++ b/configuration.nix @@ -19,7 +19,6 @@ in (import ./sourcehut.nix { inherit base-domain; }) (import ./docspell.nix { inherit base-domain docspell; }) - (import ./teedy.nix { inherit base-domain; }) (import ./paperless.nix { inherit base-domain; }) ./userprogs.nix diff --git a/nginx.nix b/nginx.nix index c1c72ee..465b543 100644 --- a/nginx.nix +++ b/nginx.nix @@ -26,13 +26,6 @@ proxyPass = "http://localhost:7879"; }; }; - "teedy.${base-domain}" = { - enableACME = true; - forceSSL = true; - locations."/" = { - proxyPass = "http://localhost:8080"; - }; - }; "paperless.${base-domain}" = { enableACME = true; forceSSL = true; diff --git a/teedy-initdb.sql b/teedy-initdb.sql deleted file mode 100644 index 6db58a2..0000000 --- a/teedy-initdb.sql +++ /dev/null @@ -1,5 +0,0 @@ -create user teedy with password 'teedy' login createdb; -create schema teedy; -grant all privileges on all tables in schema teedy to teedy; -grant all privileges on all sequences in schema teedy to teedy; -create database teedy owner teedy; diff --git a/teedy.nix b/teedy.nix deleted file mode 100644 index f3c4175..0000000 --- a/teedy.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ base-domain, ... }: -let - fqdn = "teedy.${base-domain}"; -in -{ - virtualisation.oci-containers = { - containers = { - teedy = { - image = "sismics/docs:v1.11"; - volumes = [ - "/var/lib/teedy/data:/data" - ]; - # allow acces to host network, for postgresql - extraOptions = [ "--network=host" ]; - environment = { - DOCS_BASE_URL = fqdn; - DOCS_ADMIN_EMAIL_INIT = "khais.colin@gmail.com"; - DATABASE_URL = "jdbc:postgresql://localhost:5432/teedy"; - DATABASE_USER = "teedy"; - DATABASE_PASSWORD = "teedy"; - DOCS_DEFAULT_LANGUAGE = "fra"; - }; - }; - }; - }; -}