11sync.net: bring back on fra1-a for now
This commit is contained in:
parent
afff09ddae
commit
eb88693322
@ -1,5 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
myData,
|
||||
modulesPath,
|
||||
...
|
||||
@ -117,6 +119,30 @@
|
||||
};
|
||||
|
||||
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 = {
|
||||
enable = true;
|
||||
interfaces = ["0.0.0.0" "::"];
|
||||
|
Loading…
Reference in New Issue
Block a user