Moved rewrite rules

Domain rewrite levels are configured as part of a system's configuration
instead of at the adguardhome module.
This commit is contained in:
Alejandro Angulo 2024-07-20 19:02:29 -07:00
parent 1abcc06919
commit 0090b0d345
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 21 additions and 12 deletions

View file

@ -27,18 +27,6 @@ in {
mutableSettings = true; mutableSettings = true;
host = "0.0.0.0"; host = "0.0.0.0";
port = 3000; port = 3000;
settings = {
filtering.rewrites = [
{
domain = "adguardhome.kilonull.com";
answer = "192.168.113.13";
}
{
domain = "*.kilonull.com";
answer = "192.168.113.13";
}
];
};
}; };
services.nginx = { services.nginx = {

View file

@ -90,6 +90,27 @@
apps.yubikey.enable = true; apps.yubikey.enable = true;
}; };
# Rewrite specific to this machine (didn't want to put this in my adguardhome
# module incase I want to reuse it for something else later)
services.adguardhome.settings.filtering.rewrites = [
{
domain = "octoprint.kilonull.com";
answer = "192.168.113.42";
}
{
domain = "hydra.kilonull.com";
answer = "192.168.113.69";
}
{
domain = "cache.kilonull.com";
answer = "192.168.113.69";
}
{
domain = "*.kilonull.com";
answer = "192.168.113.13";
}
];
security.pam.sshAgentAuth = { security.pam.sshAgentAuth = {
enable = true; enable = true;
# Addresses issue 31611 # Addresses issue 31611