1 { lib, pkgs, config, ... }:
5 cfg = config.myServices.websites.tools.visio;
7 options.myServices.websites.tools.visio = {
8 enable = lib.mkEnableOption "enable visio website";
11 config = lib.mkIf cfg.enable {
12 networking.firewall.allowedTCPPorts = [ turnPort ];
13 networking.firewall.allowedUDPPorts = [ turnPort ];
18 # hack to bypass module's limitations
19 dataDir = "/var/lib/galene/data -http localhost:${builtins.toString port} -turn :${builtins.toString turnPort}";
21 services.websites.env.tools.vhostConfs.visio = {
24 hosts = ["visio.immae.eu" ];
28 ProxyPass /ws ws://localhost:${builtins.toString port}/ws
29 ProxyPassReverse /ws ws://localhost:${builtins.toString port}/ws
31 ProxyPass / http://localhost:${builtins.toString port}/
32 ProxyPassReverse / http://localhost:${builtins.toString port}/