✨ add pleroma
This commit is contained in:
17
modules/pleroma/default.nix
Normal file
17
modules/pleroma/default.nix
Normal 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
17
modules/pleroma/nginx.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user