✨ add pleroma

This commit is contained in:
walkah committed 2022-04-13 22:55:35 -04:00
1 parent a23213a141
commit ed1681b62a
4 files changed
+39 -1

No files matched your search

+17
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
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;
};
};
};
};
}