add codimd

This commit is contained in:
Ingolf Wagner 2021-01-22 22:13:43 +01:00
parent 4da544fee8
commit 85945dab0a
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }: {
services.nginx.enable = true;
services.nginx.virtualHosts.codimd = {
enableACME = true;
addSSL = true;
serverName = "codimd.ingolf-wagner.de";
locations."/".extraConfig = ''
client_max_body_size 4G;
proxy_set_header Host $host;
proxy_pass http://localhost:3091;
'';
};
services.codimd = {
enable = true;
configuration = {
allowFreeURL = true;
db = {
dialect = "sqlite";
storage = "/var/lib/codimd/db.codimd.sqlite";
useCDN = false;
};
port = 3091;
};
};
}

View file

@ -6,6 +6,7 @@
./nginx.nix ./nginx.nix
./tinc.nix ./tinc.nix
#./codimd.nix
#./syncplay.nix #./syncplay.nix
#./mail-server.nix #./mail-server.nix