Add frontends

This commit is contained in:
muon 2024-12-10 13:31:39 +00:00
parent 4b3808c042
commit 92528d7121
8 changed files with 87 additions and 58 deletions

View file

@ -9,7 +9,7 @@ let
in {
# Hardware
imports = [ ./hardware-configuration.nix ];
imports = [ ./hardware-configuration.nix ../ports.nix ];
# System
mods.user.name = "muon";
@ -42,16 +42,18 @@ in {
boot.loader.grub.device = "/dev/vda";
boot.initrd.checkJournalingFS = false;
# services.static-web-server = {
# enable = true;
# listen = "[::]:80";
# root = "/var/www";
# configuration = {
# general = {
# directory-listing = true;
# };
# };
# };
services.static-web-server = {
enable = true;
listen = "[::]:8008";
root = "/var/www";
configuration = { general = { directory-listing = true; }; };
};
services.nginx.virtualHosts."muon.host" = {
enableACME = true;
forceSSL = true;
default = true;
locations."/" = { proxyPass = "http://localhost:8008"; };
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;