Compare commits

...

4 commits

4 changed files with 26 additions and 4 deletions

View file

@ -17,7 +17,9 @@ in
};
caddy.virtualHosts."gts.thewordnerd.info".extraConfig = ''
reverse_proxy http://localhost:8081
reverse_proxy http://localhost:8081 {
flush_interval -1
}
'';
};
environment.systemPackages = [ package ];

View file

@ -61,12 +61,14 @@
};
virtualisation.docker.enable = true;
users.users.nextcloud.extraGroups = [ "docker" ];
environment.systemPackages = [
environment.systemPackages = with pkgs; [
poppler_utils
(pkgs.writeScriptBin "occ" ''
#!${pkgs.bash}/bin/bash
exec nextcloud-occ "$@"
'')
];
programs.java.binfmt = true;
system.stateVersion = "24.11";
};
# https://discourse.nixos.org/t/podman-docker-in-nixos-container-ideally-in-unprivileged-one/22909/12

View file

@ -126,8 +126,25 @@
443
];
services.caddy.virtualHosts."thewordnerd.info".extraConfig =
''redir https://www.thewordnerd.info{uri}'';
services.caddy.virtualHosts."thewordnerd.info".extraConfig = ''
@webfinger {
path /.well-known/webfinger
# query acct=nolan%3Athewordnerd%40info
}
handle @webfinger {
rewrite * /.well-known/webfinger?resource=acct%3Anolan%40gts.thewordnerd.info
reverse_proxy localhost:8081
}
handle /.well-known/nodeinfo {
reverse_proxy localhost:8081
}
handle /.well-known/host-meta {
reverse_proxy localhost:8081
}
handle {
redir https://www.thewordnerd.info{uri}
}
'';
services.caddy.virtualHosts."www.thewordnerd.info".extraConfig = ''
file_server

View file

@ -19,5 +19,6 @@
};
stateVersion = "24.11";
};
services.ssh-agent.enable = true;
};
}