soft-shutdown 11sync

This commit is contained in:
Motiejus Jakštys 2024-07-01 01:05:18 +03:00
parent 11fe7ab7b3
commit abc073993f

View File

@ -129,11 +129,10 @@
'';
virtualHosts = {
"www.11sync.net".extraConfig = ''
redir https://11sync.net
redir https://jakstys.lt/2024/11sync-shutdown/
'';
"11sync.net".extraConfig = lib.mkForce ''
redir /admin/* http://admin.11sync.net{uri}
${builtins.readFile "${pkgs.e11sync-caddyfile}"}
redir https://jakstys.lt/2024/11sync-shutdown/
'';
"http://admin.11sync.net".extraConfig = ''
@denied not remote_ip ${myData.subnets.tailscale.cidr}