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 = { virtualHosts = {
"www.11sync.net".extraConfig = '' "www.11sync.net".extraConfig = ''
redir https://11sync.net redir https://jakstys.lt/2024/11sync-shutdown/
''; '';
"11sync.net".extraConfig = lib.mkForce '' "11sync.net".extraConfig = lib.mkForce ''
redir /admin/* http://admin.11sync.net{uri} redir https://jakstys.lt/2024/11sync-shutdown/
${builtins.readFile "${pkgs.e11sync-caddyfile}"}
''; '';
"http://admin.11sync.net".extraConfig = '' "http://admin.11sync.net".extraConfig = ''
@denied not remote_ip ${myData.subnets.tailscale.cidr} @denied not remote_ip ${myData.subnets.tailscale.cidr}