tweaks
This commit is contained in:
parent
766f143e51
commit
9f40a68eb4
12 changed files with 222 additions and 215 deletions
|
|
@ -8,43 +8,45 @@
|
|||
onionUrl = "http://n5j5sq55iem2hzbgvkba5vwd5gx5qj2pkb7nxyginbtmnkah74rtulad.onion";
|
||||
inherit ((pkgs.formats.elixirConf {}).lib) mkAtom;
|
||||
in {
|
||||
services.akkoma = {
|
||||
enable = true;
|
||||
config = {
|
||||
":pleroma" = {
|
||||
":instance" = {
|
||||
name = "social.distrust.network";
|
||||
description = "Akkoma instance for distrust.network users";
|
||||
email = "root@distrust.network";
|
||||
registration_open = false;
|
||||
};
|
||||
":ldap" = {
|
||||
enabled = true;
|
||||
host = "localhost";
|
||||
port = 3890;
|
||||
ssl = false;
|
||||
tls = false;
|
||||
base = "ou=people,dc=distrust,dc=network";
|
||||
uid = "uid";
|
||||
};
|
||||
"Pleroma.Upload".base_url = "https://social.distrust.network/media/";
|
||||
"Pleroma.Web.Endpoint" = {
|
||||
url.host = "social.distrust.network";
|
||||
http = {
|
||||
ip = "0.0.0.0";
|
||||
port = fediPort;
|
||||
services = {
|
||||
akkoma = {
|
||||
enable = true;
|
||||
config = {
|
||||
":pleroma" = {
|
||||
":instance" = {
|
||||
name = "social.distrust.network";
|
||||
description = "Akkoma instance for distrust.network users";
|
||||
email = "root@distrust.network";
|
||||
registration_open = false;
|
||||
};
|
||||
":ldap" = {
|
||||
enabled = true;
|
||||
host = "localhost";
|
||||
port = 3890;
|
||||
ssl = false;
|
||||
tls = false;
|
||||
base = "ou=people,dc=distrust,dc=network";
|
||||
uid = "uid";
|
||||
};
|
||||
"Pleroma.Upload".base_url = "https://social.distrust.network/media/";
|
||||
"Pleroma.Web.Endpoint" = {
|
||||
url.host = "social.distrust.network";
|
||||
http = {
|
||||
ip = "0.0.0.0";
|
||||
port = fediPort;
|
||||
};
|
||||
};
|
||||
"Pleroma.Web.Auth.Authenticator" = mkAtom "Pleroma.Web.Auth.LDAPAuthenticator";
|
||||
};
|
||||
"Pleroma.Web.Auth.Authenticator" = mkAtom "Pleroma.Web.Auth.LDAPAuthenticator";
|
||||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."http://social.distrust.network ${onionUrl}".extraConfig = ''
|
||||
reverse_proxy localhost:${toString fediPort}
|
||||
'';
|
||||
|
||||
tor.relay.onionServices."akkoma".map = [
|
||||
80
|
||||
];
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."http://social.distrust.network ${onionUrl}".extraConfig = ''
|
||||
reverse_proxy localhost:${toString fediPort}
|
||||
'';
|
||||
|
||||
services.tor.relay.onionServices."akkoma".map = [
|
||||
80
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue