mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add frontends
This commit is contained in:
parent
4b3808c042
commit
92528d7121
8 changed files with 87 additions and 58 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue