11sync.net: bring back on fra1-a for now

This commit is contained in:
Motiejus Jakštys 2024-07-01 01:22:08 +03:00
parent afff09ddae
commit eb88693322
1 changed files with 26 additions and 0 deletions

View File

@ -1,5 +1,7 @@
{ {
lib,
config, config,
pkgs,
myData, myData,
modulesPath, modulesPath,
... ...
@ -117,6 +119,30 @@
}; };
services = { services = {
caddy = {
enable = true;
email = "motiejus+acme@jakstys.lt";
globalConfig = ''
servers {
metrics
}
'';
virtualHosts = {
"www.11sync.net".extraConfig = ''
redir https://jakstys.lt/2024/11sync-shutdown/
'';
"11sync.net".extraConfig = lib.mkForce ''
redir https://jakstys.lt/2024/11sync-shutdown/
'';
"http://admin.11sync.net".extraConfig = ''
@denied not remote_ip ${myData.subnets.tailscale.cidr}
redir / /admin/
${builtins.readFile "${pkgs.e11sync-caddyfile}"}
'';
};
};
nsd = { nsd = {
enable = true; enable = true;
interfaces = ["0.0.0.0" "::"]; interfaces = ["0.0.0.0" "::"];