stockholm/lass/2configs/codimd.nix

29 lines
600 B
Nix
Raw Normal View History

2019-11-17 15:45:06 +01:00
{ config, pkgs, lib, ... }:
2019-05-29 15:20:45 +02:00
with import <stockholm/lib>;
2019-11-24 23:46:08 +01:00
{
2019-05-29 15:20:45 +02:00
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.hedgedoc = {
2019-05-29 15:20:45 +02:00
enable = true;
configuration.allowOrigin = [ "*" ];
2019-05-29 15:20:45 +02:00
configuration = {
db = {
dialect = "sqlite";
storage = "/var/lib/codimd/db.codimd.sqlite";
useCDN = false;
};
port = 3091;
};
};
}