project-wide: A move to targets, getting closer to production

This commit is contained in:
kat witch 2021-03-31 00:01:03 +01:00
parent bcfdc68b30
commit 1ce1328695
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
16 changed files with 150 additions and 110 deletions

View file

@ -5,9 +5,7 @@
ensureDatabases = [ "bitwarden_rs" ];
ensureUsers = [{
name = "bitwarden_rs";
ensurePermissions = {
"DATABASE bitwarden_rs" = "ALL PRIVILEGES";
};
ensurePermissions = { "DATABASE bitwarden_rs" = "ALL PRIVILEGES"; };
}];
};
@ -32,7 +30,7 @@
"/notifications/hub".proxyPass = "http://127.0.0.1:3012";
"/notifications/hub/negotiate".proxyPass = "http://127.0.0.1:80";
};
};
};
deploy.tf.dns.records.kittywitch_vault = {
tld = "kittywit.ch.";

View file

@ -4,11 +4,10 @@
services.postgresql = {
enable = true;
ensureDatabases = [ "gitea" ];
ensureUsers = [
{ name = "gitea";
ensurePermissions."DATABASE gitea" = "ALL PRIVILEGES";
}
];
ensureUsers = [{
name = "gitea";
ensurePermissions."DATABASE gitea" = "ALL PRIVILEGES";
}];
};
services.gitea = {

View file

@ -14,7 +14,7 @@
sslCert=/var/lib/acme/kittywit.ch/fullchain.pem
sslKey=/var/lib/acme/kittywit.ch/key.pem
'';
};
};
deploy.tf.dns.records.kittywitch_voice = {
tld = "kittywit.ch.";

View file

@ -12,7 +12,7 @@
enableACME = true;
forceSSL = true;
locations = { "/".proxyPass = "http://127.0.0.1:5001"; };
};
};
deploy.tf.dns.records.kittywitch_sync = {
tld = "kittywit.ch.";

View file

@ -35,7 +35,7 @@ in {
proxyWebsockets = true;
};
};
};
};
deploy.tf.dns.records.kittywitch_irc = {
tld = "kittywit.ch.";