diff --git a/server/default.nix b/server/default.nix index 969ed0b..6901a2c 100644 --- a/server/default.nix +++ b/server/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { imports = [ ./hardware-configuration.nix @@ -50,9 +50,18 @@ "redlib.thilohohlt.com" = { enableACME = true; forceSSL = true; + locations."/" = { + proxyPass = "http://localhost:${toString config.services.redlib.port}"; + proxyWebsockets = true; + }; }; }; }; + redlib = { + enable = true; + port = 2222; + address = "127.0.0.1"; + }; }; security = {