make .onion domains declarative, site updates, add helpers
This commit is contained in:
parent
b3d2a34bc0
commit
450a5ce1d6
25 changed files with 341 additions and 109 deletions
|
|
@ -1,25 +1,28 @@
|
|||
let
|
||||
onionUrl = "http://i3a47orggn2cebueja2jur66yjgyqd2y7kzthajar4ghuerbx2kzwqyd.onion";
|
||||
{config, ...}: let
|
||||
lldapPort = 8089;
|
||||
in {
|
||||
services = {
|
||||
lldap = {
|
||||
enable = true;
|
||||
settings = {
|
||||
http_url = "https://login.distrust.network";
|
||||
ldap_user_email = "root@distrust.network";
|
||||
ldap_user_dn = "root";
|
||||
ldap_base_dn = "dc=distrust,dc=network";
|
||||
ldap_user_pass = "VERY_SECURE";
|
||||
};
|
||||
age.secrets."hidden_service/lldap".file = ../secrets/hidden_service/lldap;
|
||||
|
||||
services.lldap = {
|
||||
enable = true;
|
||||
settings = {
|
||||
http_url = "https://login.distrust.network";
|
||||
http_port = lldapPort;
|
||||
ldap_user_email = "root@distrust.network";
|
||||
ldap_user_dn = "root";
|
||||
ldap_base_dn = "dc=distrust,dc=network";
|
||||
ldap_user_pass = "VERY_SECURE";
|
||||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."https://login.distrust.network ${onionUrl}".extraConfig = ''
|
||||
reverse_proxy localhost:17170
|
||||
header Onion-Location ${onionUrl}
|
||||
distrust.services."lldap" = {
|
||||
url = "https://login.distrust.network";
|
||||
onion = {
|
||||
url = "http://i3a47orggn2cebueja2jur66yjgyqd2y7kzthajar4ghuerbx2kzwqyd.onion";
|
||||
secretKey = config.age.secrets."hidden_service/lldap".path;
|
||||
};
|
||||
virtualHostConfig = ''
|
||||
reverse_proxy localhost:${toString lldapPort}
|
||||
'';
|
||||
|
||||
tor.relay.onionServices."lldap".map = [
|
||||
80
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue