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 /converse ${./www}/converse.html
21 ProxyPass http://localhost:5280/bosh
22 ProxyPassReverse http://localhost:5280/bosh
25 ProxyPass ws://localhost:5280/ws
27 ProxyPass /upload http://localhost:5280/upload
28 ProxyPassReverse /upload http://localhost:5280/upload
29 ProxyPass /admin http://localhost:5280/admin
30 ProxyPassReverse /admin http://localhost:5280/admin
31 ProxyPass /api http://localhost:5280/api
32 ProxyPassReverse /api http://localhost:5280/api