vm: add admin endpoint
This commit is contained in:
parent
34ba024d56
commit
7d6143a832
@ -121,6 +121,7 @@
|
||||
nixosConfigurations.vm = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
{nixpkgs.overlays = [overlay];}
|
||||
"${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
|
||||
./vm.nix
|
||||
self.nixosModules.e11sync
|
||||
|
9
vm.nix
9
vm.nix
@ -13,6 +13,10 @@
|
||||
auto_https off
|
||||
debug
|
||||
'';
|
||||
virtualHosts."http://:8003".extraConfig = ''
|
||||
redir / /admin/
|
||||
${builtins.readFile "${pkgs.e11sync-caddyfile}"}
|
||||
'';
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
@ -37,6 +41,11 @@
|
||||
host.port = 8001;
|
||||
guest.port = 8001;
|
||||
}
|
||||
{
|
||||
from = "host";
|
||||
host.port = 8003;
|
||||
guest.port = 8003;
|
||||
}
|
||||
];
|
||||
};
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
Loading…
Reference in New Issue
Block a user