add pleroma

This commit is contained in:
2022-04-13 22:55:35 -04:00
parent a23213a141
commit ed1681b62a
4 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
{
services = {
pleroma = {
enable = true;
configs = [ "import Config" ];
};
postgresql = {
ensureDatabases = [ "pleroma" ];
ensureUsers = [{
name = "pleroma";
ensurePermissions = { "DATABASE pleroma" = "ALL PRIVILEGES"; };
}];
};
};
}

17
modules/pleroma/nginx.nix Normal file
View File

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
{
services.nginx = {
enable = true;
virtualHosts = {
"walkah.social" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://plato:4000";
proxyWebsockets = true;
};
};
};
};
}