nixos-config/legacy/robi/codimd.nix

35 lines
660 B
Nix
Raw Normal View History

2022-01-13 13:40:18 +01:00
{ config, lib, pkgs, ... }:
let
domain = "md.ingolf-wagner.de";
in
{
services.nginx.enable = true;
services.nginx.virtualHosts.hedgedoc = {
enableACME = true;
forceSSL = true;
serverName = domain;
locations."/" = {
2023-01-07 21:11:25 +01:00
proxyPass = "http://localhost:${toString config.services.hedgedoc.settings.port}";
2022-01-13 13:40:18 +01:00
proxyWebsockets = true;
};
};
services.hedgedoc = {
enable = true;
2023-01-07 21:11:25 +01:00
settings = {
2022-01-13 13:40:18 +01:00
db = {
dialect = "sqlite";
storage = "/var/lib/hedgedoc/db.sqlite";
useCDN = false;
};
allowFreeURL = true;
domain = domain;
port = 3091;
useCDN = false;
};
};
}