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,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
localIp = "192.168.178.129";
|
||||||
|
in {
|
||||||
services.adguardhome = {
|
services.adguardhome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
host = "127.0.0.1";
|
host = "127.0.0.1";
|
||||||
|
|
@ -21,7 +23,7 @@
|
||||||
bind_hosts = [
|
bind_hosts = [
|
||||||
"127.0.0.1"
|
"127.0.0.1"
|
||||||
"::1"
|
"::1"
|
||||||
"192.168.178.129"
|
localIp
|
||||||
];
|
];
|
||||||
upstream_dns = [
|
upstream_dns = [
|
||||||
"94.140.14.14"
|
"94.140.14.14"
|
||||||
|
|
@ -43,7 +45,7 @@
|
||||||
safe_search = {enabled = false;};
|
safe_search = {enabled = false;};
|
||||||
rewrites =
|
rewrites =
|
||||||
map (url: {
|
map (url: {
|
||||||
answer = "192.168.178.129";
|
answer = localIp;
|
||||||
domain = url;
|
domain = url;
|
||||||
}) [
|
}) [
|
||||||
"kylekrein.com"
|
"kylekrein.com"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue