commit ee4a97dc5533b307956b210697fb6c3212d899c2
parent c11294c03fdd7e1c69a38caed16079a2e00a69ab
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 19 Nov 2024 11:17:38 +0100
parent c11294c03fdd7e1c69a38caed16079a2e00a69ab
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 19 Nov 2024 11:17:38 +0100
machines/wanderduene: cleanup
3 files changed, 23 insertions(+), 27 deletions(-)
diff --git a/machines/briefkasten/pocketmine-server.nix b/machines/briefkasten/pocketmine-server.nix @@ -0,0 +1,22 @@ +{ pkgs, lib, ... }: + +{ + + users.groups.pocketmine = {}; + users.users.pocketmine = { + isSystemUser = true; + createHome = true; + group = "pocketmine"; + home = "/var/lib/pocketmine"; + }; + + systemd.services.pocketmine-server = { + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + User = "pocketmine"; + Group = "pocketmine"; + WorkingDirectory = "/var/lib/pocketmine"; + ExecStart = "${pkgs.pocketmine-mp}/bin/php ${pkgs.pocketmine-mp}/PocketMine-MP.phar"; + }; + }; +}+ \ No newline at end of file
diff --git a/machines/wanderduene/reverse-proxy-briefkasten.nix b/machines/wanderduene/reverse-proxy-briefkasten.nix @@ -7,20 +7,15 @@ let ]; subdomains = [ - "dav" "photos" "briefkasten" - "solar-system-nrw" "home" - "legacy.home" "briefkasten.home" "fedi.home" "influx.home" "smart.home" "music.home" "wiki.home" - "things.home" - "travelynx2fedi.home" ]; in {
diff --git a/machines/wanderduene/reverse-proxy-stasicontainer.nix b/machines/wanderduene/reverse-proxy-stasicontainer.nix @@ -1,21 +0,0 @@ -{ pkgs, lib, config, ... }: - -{ - - services.nginx.clientMaxBodySize = "2g"; - - dns.zones."ctu.cx".subdomains."stasicontainer.home".CNAME = [ "${config.networking.fqdn}." ]; - - services.nginx.virtualHosts."stasicontainer.home.ctu.cx" = { - enableACME = true; - forceSSL = true; - kTLS = true; - locations."/".proxyPass = "http://172.18.0.2:80/"; - locations."/".proxyWebsockets = true; - locations."/".extraConfig = '' - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header X-Forwarded-Proto $scheme; - ''; - }; - -}- \ No newline at end of file