2021-01-17 16:57:20 +01:00
|
|
|
{ config, lib, pkgs, ... }: {
|
2021-01-10 13:28:59 +01:00
|
|
|
|
|
|
|
services.nginx.enable = true;
|
|
|
|
services.nginx.virtualHosts.codimd = {
|
|
|
|
enableACME = true;
|
|
|
|
addSSL = true;
|
2021-05-23 13:37:02 +02:00
|
|
|
serverName = "codimd.${config.workadventure.domain}";
|
2021-01-10 13:28:59 +01:00
|
|
|
locations."/".extraConfig = ''
|
|
|
|
client_max_body_size 4G;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_pass http://localhost:3091;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
services.codimd = {
|
|
|
|
enable = true;
|
|
|
|
configuration = {
|
2021-01-17 16:57:20 +01:00
|
|
|
allowFreeURL = true;
|
2021-01-10 13:28:59 +01:00
|
|
|
db = {
|
|
|
|
dialect = "sqlite";
|
|
|
|
storage = "/var/lib/codimd/db.codimd.sqlite";
|
|
|
|
useCDN = false;
|
|
|
|
};
|
|
|
|
port = 3091;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|