feat(sj-bm-hostkey0): enable fuse, docker, podman, caddy as s3 reverse-proxy

This commit is contained in:
steveej 2024-04-18 17:38:24 +02:00
parent 4c85413b56
commit a6ce446fe9

View file

@ -154,8 +154,28 @@ in {
environment.systemPackages = [ environment.systemPackages = [
pkgs.hdparm pkgs.hdparm
pkgs.fuse
]; ];
programs.fuse.userAllowOther = true;
services.caddy.enable = true;
services.caddy.email = "mail@stefanjunker.de";
services.caddy.globalConfig = ''
auto_https disable_redirects
'';
services.caddy.virtualHosts = let
holochainDomain = "dev.infra.holochain.org";
in {
"${nodeName}.${holochainDomain}" = {
extraConfig = ''
handle_path /s3/* {
reverse_proxy http://127.0.0.1:9000
}
'';
};
};
# home-manager.users.steveej = _: { # home-manager.users.steveej = _: {
# imports = [ # imports = [
# ../../../home-manager/configuration/text-minimal.nix # ../../../home-manager/configuration/text-minimal.nix
@ -169,6 +189,11 @@ in {
# }; # };
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
virtualisation.docker.enable = true;
virtualisation.podman.enable = true;
virtualisation.podman.autoPrune.enable = true;
# virtualisation.podman.dockerSocket.enable = true;
boot.binfmt.emulatedSystems = [ boot.binfmt.emulatedSystems = [
"aarch64-linux" "aarch64-linux"