mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
feat(dns,nginx): add some weird magic
This commit is contained in:
parent
ab03b23b45
commit
714a279fc2
8 changed files with 127 additions and 72 deletions
10
lib/dns.nix
10
lib/dns.nix
|
@ -4,6 +4,16 @@ with lib;
|
|||
|
||||
rec {
|
||||
|
||||
allowedDomains = [
|
||||
"luj.fr"
|
||||
"julienmalka.me"
|
||||
"malka.family"
|
||||
"luj"
|
||||
"malka.sh"
|
||||
];
|
||||
|
||||
isVPNDomain = hasSuffix "luj";
|
||||
|
||||
hasSuffix' = flip strings.hasSuffix;
|
||||
|
||||
domainToZone = allowedDomains: domain: (findFirst (hasSuffix' domain) null allowedDomains);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue