aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-11 17:25:48 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-11 17:25:48 +0200
commitea3b46ee264fc1c01d62a7f3ee538b14cb6e3dca (patch)
treed4736deaab5fe16c2e430447c97b2ee5b3db6568 /modules/private/websites
parent3c408c981aa73c856b983035fab6e82ac143cc04 (diff)
downloadNix-ea3b46ee264fc1c01d62a7f3ee538b14cb6e3dca.tar.gz
Nix-ea3b46ee264fc1c01d62a7f3ee538b14cb6e3dca.tar.zst
Nix-ea3b46ee264fc1c01d62a7f3ee538b14cb6e3dca.zip
Add fiche module (a program to submit paste from command line)
Diffstat (limited to 'modules/private/websites')
-rw-r--r--modules/private/websites/tools/tools/default.nix16
1 files changed, 16 insertions, 0 deletions
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 {
131 (ldap.apache.vhostConf pcfg.ldap.socket) 131 (ldap.apache.vhostConf pcfg.ldap.socket)
132 (kanboard.apache.vhostConf pcfg.kanboard.socket) 132 (kanboard.apache.vhostConf pcfg.kanboard.socket)
133 (grocy.apache.vhostConf pcfg.grocy.socket) 133 (grocy.apache.vhostConf pcfg.grocy.socket)
134 ''
135 Alias /paste /var/lib/fiche
136 <Directory "/var/lib/fiche">
137 DirectoryIndex index.txt index.html
138 AllowOverride None
139 Require all granted
140 Options -Indexes
141 </Directory>
142 ''
134 ]; 143 ];
135 }; 144 };
136 145
@@ -346,6 +355,13 @@ in {
346 restart = true; 355 restart = true;
347 paths = [ "/var/secrets/webapps/tools-wallabag" ]; 356 paths = [ "/var/secrets/webapps/tools-wallabag" ];
348 }; 357 };
358
359 services.fiche = {
360 enable = true;
361 port = config.myEnv.ports.fiche;
362 domain = "tools.immae.eu/paste";
363 https = true;
364 };
349 }; 365 };
350} 366}
351 367