chore: remove unused teedy setup

This commit is contained in:
Khaïs COLIN 2024-08-29 15:28:38 +02:00
parent 1940f26e70
commit ff8eee35b1
5 changed files with 0 additions and 40 deletions

View file

@ -7,7 +7,6 @@
"meta.sourcehut.${base-domain}"
"git.sourcehut.${base-domain}"
"docspell.${base-domain}"
"teedy.${base-domain}"
"paperless.${base-domain}"
];
acceptTerms = true;

View file

@ -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

View file

@ -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;

View file

@ -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;

View file

@ -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";
};
};
};
};
}