From 83e79a89399a0cbf8bae81e338c466abf4517e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 17 May 2021 15:11:19 +0200 Subject: Add weechat relay client --- modules/private/system/dilion.nix | 4 ++++ modules/private/websites/tools/im/default.nix | 7 ++++++- modules/private/websites/tools/im/www/index.html | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/private/system/dilion.nix b/modules/private/system/dilion.nix index 3e01af3..be8269e 100644 --- a/modules/private/system/dilion.nix +++ b/modules/private/system/dilion.nix @@ -152,6 +152,10 @@ 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; diff --git a/modules/private/websites/tools/im/default.nix b/modules/private/websites/tools/im/default.nix index 9744d8e..94dc4f8 100644 --- a/modules/private/websites/tools/im/default.nix +++ b/modules/private/websites/tools/im/default.nix @@ -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 @@ -30,6 +31,10 @@ in ProxyPassReverse /admin http://localhost:5280/admin ProxyPass /api http://localhost:5280/api ProxyPassReverse /api http://localhost:5280/api + + AllowOverride none + Require all granted + '' ]; }; diff --git a/modules/private/websites/tools/im/www/index.html b/modules/private/websites/tools/im/www/index.html index 15e09f2..90c5458 100644 --- a/modules/private/websites/tools/im/www/index.html +++ b/modules/private/websites/tools/im/www/index.html @@ -33,6 +33,7 @@ Pre-configured clients:

-- cgit v1.2.3