workadventure add codimd

feature/hass
Ingolf Wagner 2021-01-10 13:28:59 +01:00
parent baf77cd607
commit 7284ffdec9
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,31 @@
{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

@ -2,8 +2,9 @@
imports = [
#
./hardware-configuration.nix
./ssh.nix
./codimd.nix
./jitsi.nix
./ssh.nix
./workadventure.nix
];