Compare commits

...

2 commits

Author SHA1 Message Date
de74494c38 move misskey socket to subdir 2024-02-26 09:43:11 -08:00
d3be540a97 Database identity files and users 2024-02-26 09:42:55 -08:00

View file

@ -2,6 +2,24 @@
services.postgresql = { services.postgresql = {
enable = true; enable = true;
package = pkgs.postgresql_15; package = pkgs.postgresql_15;
ensureUsers = [
{ name = "jaina"; }
{
name = "misskey";
ensureDbOwnership = true;
}
{ name = "postgres"; }
];
ensureDatabases = [ "misskey" ];
identMap = ''
# ArbitraryMapName systemUser DBUser
superuser_map root postgres
superuser_map postgres postgres
# Let other names login as themselves
superuser_map /^(.*)$ \1
'';
}; };
services.redis.servers.misskey = { services.redis.servers.misskey = {
@ -29,7 +47,7 @@
recommendedProxySettings = true; recommendedProxySettings = true;
upstreams."misskey".extraConfig = '' upstreams."misskey".extraConfig = ''
server unix:/var/run/misskey.sock; server unix:/var/run/misskey/misskey.sock;
''; '';
virtualHosts."egirls.gay" = { virtualHosts."egirls.gay" = {