switched gitea db to mc6
This commit is contained in:
parent
fbf7e9b285
commit
34c2ccf1a4
1 changed files with 19 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
let
|
||||
domain = "dev.mc-fucker.cool";
|
||||
gitea_port = "3333";
|
||||
gitea_db = "gitea";
|
||||
in
|
||||
|
||||
{
|
||||
|
|
@ -14,10 +15,10 @@ in
|
|||
|
||||
database = {
|
||||
createDatabase = false;
|
||||
host = "postgres";
|
||||
host = "localhost";
|
||||
type = "postgres";
|
||||
port = 5432;
|
||||
name = "giteadb";
|
||||
name = gitea_db;
|
||||
passwordFile = /etc/nixos/keys/gitea-dbpassword;
|
||||
};
|
||||
|
||||
|
|
@ -36,6 +37,22 @@ in
|
|||
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
ensureDatabases = [ gitea_db ];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = gitea_db;
|
||||
ensurePermissions = {
|
||||
"DATABASE ${gitea_db}" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.postgresqlBackup.databases = [
|
||||
gitea_db
|
||||
];
|
||||
|
||||
services.nginx.virtualHosts."${domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue