dns fixes
This commit is contained in:
parent
b8ac30ba01
commit
65eec7ec06
4 changed files with 6 additions and 3 deletions
5
modules/common/dns.nix
Normal file
5
modules/common/dns.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
networking.resolvconf.enable = false;
|
||||
environment.etc."resolv.conf".text = lib.mkForce "nameserver 127.0.0.1";
|
||||
}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
networking.resolvconf.useLocalResolver = true;
|
||||
services.dnsproxy = {
|
||||
enable = true;
|
||||
flags = [
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
"github.com/ggicci/caddy-jwt@v1.1.0"
|
||||
"pkg.jsn.cam/caddy-defender@v0.9.0"
|
||||
];
|
||||
hash = "sha256-yvBkB4Hrja89AVsMY6Bt1fiQDxil/nrL50lW9P5BjZU=";
|
||||
hash = "sha256-0FHE3HWLJvqygeHIp/0JQ9R0nS2Vux7S+r4ghCa9hpc=";
|
||||
};
|
||||
|
||||
globalConfig = ''
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@
|
|||
max_request_size = 524288000;
|
||||
db_cache_capacity_mb = 2056;
|
||||
|
||||
query_over_tcp_only = true;
|
||||
dns_cache_entries = 0;
|
||||
|
||||
allow_public_room_directory_over_federation = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue