nixos-config/modules/services/guacamole.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
2025-06-24 16:33:31 +02:00
{
services = {
guacamole-server = {
enable = false;
package = pkgs.guacamole-server;
2025-06-24 16:33:31 +02:00
host = "127.0.0.1";
port = 4822;
userMappingXml = ./guacamole-user-mapping.xml;
};
guacamole-client = {
enable = false;
package = pkgs.guacamole-client;
enableWebserver = false;
2025-06-24 16:33:31 +02:00
settings = {
guacd-port = 4822;
guacd-hostname = "localhost";
};
};
2025-12-31 01:35:01 +01:00
#anubis.instances.guacamole = {
# settings = {
# TARGET = "http://localhost:4822";
# BIND = "/run/anubis/anubis-guacamole/anubis.sock";
# METRICS_BIND = "/run/anubis/anubis-guacamole/anubis.sock";
# };
#};
2025-06-24 16:33:31 +02:00
nginx.virtualHosts."remote.liv.town" = {
forceSSL = true;
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
locations."/" = {
2025-12-31 01:35:01 +01:00
# proxyPass = "http://unix:${toString config.services.anubis.instances.guacamole.settings.BIND}";
proxyPass = "http://${toString config.services.guacamole-server.host}:${toString config.services.guacamole-server.port}";
2025-06-24 16:33:31 +02:00
proxyWebsockets = true;
};
};
};
}