Compare commits

...

2 Commits

Author SHA1 Message Date
coolneng 134be027e2
Fix import of matrix appservice registration files 2023-07-27 01:15:06 +02:00
coolneng 0a3bcc27ad
Set up Encrypted DNS resolver 2023-07-27 01:14:36 +02:00
2 changed files with 27 additions and 3 deletions

View File

@ -26,7 +26,14 @@ in {
dns_cache.enabled = true; dns_cache.enabled = true;
}; };
# HACK Inherit postgres connection string for the rest of the DBs # HACK Inherit postgres connection string for the rest of the DBs
app_service_api = { inherit database; }; app_service_api = {
inherit database;
config_files = [
"/var/lib/matrix-as-facebook/facebook-registration.yaml"
"/var/lib/matrix-as-signal/signal-registration.yaml"
"/var/lib/matrix-as-telegram/telegram-registration.yaml"
];
};
media_api = { inherit database; }; media_api = { inherit database; };
room_server = { inherit database; }; room_server = { inherit database; };
push_server = { inherit database; }; push_server = { inherit database; };
@ -56,7 +63,6 @@ in {
homeserver = "dendrite"; homeserver = "dendrite";
homeserverDomain = "coolneng.duckdns.org"; homeserverDomain = "coolneng.duckdns.org";
homeserverURL = "https://matrix.coolneng.duckdns.org"; homeserverURL = "https://matrix.coolneng.duckdns.org";
addRegistrationFiles = true;
services = { services = {
telegram = { telegram = {
port = 8118; port = 8118;

View File

@ -112,7 +112,7 @@ in {
listen-address = [ "127.0.0.1" "192.168.13.2" "10.8.0.1" ]; listen-address = [ "127.0.0.1" "192.168.13.2" "10.8.0.1" ];
bind-interfaces = true; bind-interfaces = true;
server = [ "51.158.108.203" "137.220.55.93" ]; server = [ "127.0.0.1#43" ];
cache-size = 10000; cache-size = 10000;
local-ttl = 300; local-ttl = 300;
@ -123,4 +123,22 @@ in {
}; };
}; };
# Encrypted DNS
services.dnscrypt-proxy2 = {
enable = true;
settings = {
ipv6_servers = false;
require_dnssec = true;
listen_addresses = [ "127.0.0.1:43" ];
sources.public-resolvers = {
urls = [
"https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
];
cache_file = "/var/lib/dnscrypt-proxy2/public-resolvers.md";
minisign_key =
"RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";
};
};
};
} }