1 { config, lib, pkgs, ... }:
3 cfg = config.myServices.websites.tools.im;
6 options.myServices.websites.tools.im = {
7 enable = lib.mkEnableOption "enable im website";
10 config = lib.mkIf cfg.enable {
11 services.websites.env.tools.vhostConfs.im = {
14 hosts = ["im.immae.fr"];
18 Alias /glowing-bear ${pkgs.glowing-bear}
19 Alias /converse ${./www}/converse.html
22 ProxyPass http://localhost:5280/bosh
23 ProxyPassReverse http://localhost:5280/bosh
26 ProxyPass ws://localhost:5280/ws
28 ProxyPass /upload http://localhost:5280/upload
29 ProxyPassReverse /upload http://localhost:5280/upload
30 ProxyPass /admin http://localhost:5280/admin
31 ProxyPassReverse /admin http://localhost:5280/admin
32 ProxyPass /api http://localhost:5280/api
33 ProxyPassReverse /api http://localhost:5280/api
34 <Directory ${pkgs.glowing-bear}>