admin.e11sync.net

This commit is contained in:
Motiejus Jakštys 2024-01-20 12:13:58 +02:00
parent dbd728ff34
commit e4ffdf6a2d
4 changed files with 16 additions and 7 deletions

View File

@ -145,6 +145,7 @@ rec {
ns1 A ${vno1}
ns2 A ${fra1a}
www 600 A ${fra1a}
admin 600 A ${fra1a}
key1._domainkey CNAME key1.11sync.net._domainkey.migadu.com.
key2._domainkey CNAME key2.11sync.net._domainkey.migadu.com.
key3._domainkey CNAME key3.11sync.net._domainkey.migadu.com.

View File

@ -71,11 +71,11 @@
]
},
"locked": {
"lastModified": 1705742771,
"narHash": "sha256-N4DskS7Td5DeM70ZAs9A644XUMkNHoly96QfZ336cAc=",
"lastModified": 1705745512,
"narHash": "sha256-kcf2xuu3lQdXY+WNWjk4RiPJyhxB8Ewr7H5FQRAbL3w=",
"ref": "refs/heads/main",
"rev": "97eb1f0fed235d7337b81ccc6e5380a94766c629",
"revCount": 128,
"rev": "5c957684e4f2a3ae15e687b4a4324dfdb9ba3eaf",
"revCount": 131,
"type": "git",
"url": "https://git.jakstys.lt/motiejus/e11sync"
},

View File

@ -108,6 +108,7 @@
# nixpkgs-unstable. See git log around the switch from 23.05 to 23.11.
mkOverlays = _: [
nur.overlay
e11sync.overlays.default
];
in
{

View File

@ -1,5 +1,6 @@
{
config,
pkgs,
myData,
modulesPath,
...
@ -91,9 +92,15 @@
metrics
}
'';
virtualHosts."www.11sync.net".extraConfig = ''
redir https://11sync.net
'';
virtualHosts = {
"www.11sync.net".extraConfig = ''
redir https://11sync.net
'';
"admin.11sync.net".extraConfig = ''
@denied not remote_ip ${myData.subnets.tailscale.cidr}
${builtins.readFile "${pkgs.e11sync-frontend}"}
'';
};
};
nsd = {