Compare commits
2 commits
0c2aa71b7a
...
de74494c38
Author | SHA1 | Date | |
---|---|---|---|
de74494c38 | |||
d3be540a97 |
1 changed files with 19 additions and 1 deletions
|
@ -2,6 +2,24 @@
|
|||
services.postgresql = {
|
||||
enable = true;
|
||||
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 = {
|
||||
|
@ -29,7 +47,7 @@
|
|||
recommendedProxySettings = true;
|
||||
|
||||
upstreams."misskey".extraConfig = ''
|
||||
server unix:/var/run/misskey.sock;
|
||||
server unix:/var/run/misskey/misskey.sock;
|
||||
'';
|
||||
|
||||
virtualHosts."egirls.gay" = {
|
||||
|
|
Loading…
Reference in a new issue