From ea3b46ee264fc1c01d62a7f3ee538b14cb6e3dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 11 Apr 2020 17:25:48 +0200 Subject: Add fiche module (a program to submit paste from command line) --- modules/private/websites/tools/tools/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'modules/private/websites/tools/tools') diff --git a/modules/private/websites/tools/tools/default.nix b/modules/private/websites/tools/tools/default.nix index 46a28e7..97402f1 100644 --- a/modules/private/websites/tools/tools/default.nix +++ b/modules/private/websites/tools/tools/default.nix @@ -131,6 +131,15 @@ in { (ldap.apache.vhostConf pcfg.ldap.socket) (kanboard.apache.vhostConf pcfg.kanboard.socket) (grocy.apache.vhostConf pcfg.grocy.socket) + '' + Alias /paste /var/lib/fiche + + DirectoryIndex index.txt index.html + AllowOverride None + Require all granted + Options -Indexes + + '' ]; }; @@ -346,6 +355,13 @@ in { restart = true; paths = [ "/var/secrets/webapps/tools-wallabag" ]; }; + + services.fiche = { + enable = true; + port = config.myEnv.ports.fiche; + domain = "tools.immae.eu/paste"; + https = true; + }; }; } -- cgit v1.2.3