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 = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@@ -50,10 +50,19 @@
"redlib.thilohohlt.com" = { "redlib.thilohohlt.com" = {
enableACME = true; enableACME = true;
forceSSL = 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 = { security = {
acme = { acme = {