11 lines
344 B
Nix
11 lines
344 B
Nix
{ config, lib, ... }:
|
|
{
|
|
services.nginx.virtualHosts."${config.services.hedgedoc.settings.domain}" = lib.mkIf config.services.hedgedoc.enable {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:${toString config.services.hedgedoc.settings.port}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
}
|