summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-05-29 15:20:45 +0200
committerlassulus <lassulus@lassul.us>2019-05-29 15:20:45 +0200
commit86e5815ba3b05acbd49aa910dbabdfbb21de0e23 (patch)
treee40ba5d6f28b993a2a437358258eef68e9b1d508 /lass/2configs
parente0af72f1f3531576caee2608cf407b8bb4c05ea2 (diff)
l prism.r: enable codimd
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/codimd.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/lass/2configs/codimd.nix b/lass/2configs/codimd.nix
new file mode 100644
index 000000000..5f802148b
--- /dev/null
+++ b/lass/2configs/codimd.nix
@@ -0,0 +1,28 @@
+{ config, pkgs, ... }:
+with import <stockholm/lib>;
+
+{
+ services.nginx.virtualHosts.codimd = {
+ enableACME = true;
+ addSSL = true;
+ serverName = "codi.lassul.us";
+ locations."/".extraConfig = ''
+ client_max_body_size 4G;
+ proxy_set_header Host $host;
+ proxy_pass http://localhost:3091;
+ '';
+ };
+
+ services.codimd = {
+ enable = true;
+ configuration = {
+ db = {
+ dialect = "sqlite";
+ storage = "/var/lib/codimd/db.codimd.sqlite";
+ useCDN = false;
+ };
+ port = 3091;
+ };
+ };
+}
+