Skip to content

Commit e256105

Browse files
committed
Set redlib configuration
1 parent e9ee505 commit e256105

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

server/default.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ pkgs, ... }:
1+
{ pkgs, config, ... }:
22
{
33
imports = [
44
./hardware-configuration.nix
@@ -50,9 +50,18 @@
5050
"redlib.thilohohlt.com" = {
5151
enableACME = true;
5252
forceSSL = true;
53+
locations."/" = {
54+
proxyPass = "http://localhost:${toString config.services.redlib.port}";
55+
proxyWebsockets = true;
56+
};
5357
};
5458
};
5559
};
60+
redlib = {
61+
enable = true;
62+
port = 2222;
63+
address = "127.0.0.1";
64+
};
5665
};
5766

5867
security = {

0 commit comments

Comments
 (0)