]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add weechat relay client
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 17 May 2021 13:11:19 +0000 (15:11 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 17 May 2021 13:11:19 +0000 (15:11 +0200)
modules/private/system/dilion.nix
modules/private/websites/tools/im/default.nix
modules/private/websites/tools/im/www/index.html

index 3e01af3a53a0a55fa8f32c1227f6595637f55412..be8269e27f619fbaaf616adc52d07ef12da4061c 100644 (file)
 
   myServices.monitoring.enable = true;
   myServices.certificates.enable = true;
+  security.acme.certs."${name}-immae" = config.myServices.certificates.certConfig // {
+    user = "immae";
+    domain = "dilion.immae.eu";
+  };
   security.acme.certs."${name}" = {
     user = config.services.nginx.user;
     group = config.services.nginx.group;
index 9744d8ed0dc188bb1e8924c35c29f7264082ad60..94dc4f81d242143e8e3561897d67ba21757dc951 100644 (file)
@@ -1,4 +1,4 @@
-{ config, lib, ... }:
+{ config, lib, pkgs, ... }:
 let
   cfg = config.myServices.websites.tools.im;
 in
@@ -15,6 +15,7 @@ in
       root       = ./www;
       extraConfig = [
         ''
+          Alias /glowing-bear ${pkgs.glowing-bear}
           Alias /converse ${./www}/converse.html
           ProxyPreserveHost On
           <Location "/bosh">
@@ -30,6 +31,10 @@ in
           ProxyPassReverse /admin http://localhost:5280/admin
           ProxyPass /api http://localhost:5280/api
           ProxyPassReverse /api http://localhost:5280/api
+          <Directory ${pkgs.glowing-bear}>
+          AllowOverride none
+          Require all granted
+          </Directory>
           ''
       ];
     };
index 15e09f2112c205262275dc07188aac5c957c3bab..90c54587b47f63bbe54e3122b010d850fb6f84ee 100644 (file)
@@ -33,6 +33,7 @@
     Pre-configured clients:
     <ul>
       <li><a href="converse">Converse client</a></li>
+      <li><a href="glowing-bear">Weechat relay client</a></li>
     </ul>
     </p>
     <p>