Set redlib configuration

This commit is contained in:
thiloho
2025-10-24 13:06:02 +02:00
parent e9ee50535f
commit e256105912

View File

@@ -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 = {