LocalIP Variable in Adguard home
This commit is contained in:
parent
32e166c762
commit
d5920f298f
1 changed files with 5 additions and 3 deletions
|
|
@ -3,7 +3,9 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
localIp = "192.168.178.129";
|
||||
in {
|
||||
services.adguardhome = {
|
||||
enable = true;
|
||||
host = "127.0.0.1";
|
||||
|
|
@ -21,7 +23,7 @@
|
|||
bind_hosts = [
|
||||
"127.0.0.1"
|
||||
"::1"
|
||||
"192.168.178.129"
|
||||
localIp
|
||||
];
|
||||
upstream_dns = [
|
||||
"94.140.14.14"
|
||||
|
|
@ -43,7 +45,7 @@
|
|||
safe_search = {enabled = false;};
|
||||
rewrites =
|
||||
map (url: {
|
||||
answer = "192.168.178.129";
|
||||
answer = localIp;
|
||||
domain = url;
|
||||
}) [
|
||||
"kylekrein.com"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue