l codimd: allow embedding
This commit is contained in:
parent
c79ecd830f
commit
88a61c2611
|
@ -28,6 +28,10 @@ in {
|
||||||
params.hedgedoc = {};
|
params.hedgedoc = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.hedgedoc.environment = {
|
||||||
|
CMD_COOKIE_POLICY = "none";
|
||||||
|
CMD_CSP_ALLOW_FRAMING = "true";
|
||||||
|
};
|
||||||
services.hedgedoc = {
|
services.hedgedoc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configuration.allowOrigin = [ domain ];
|
configuration.allowOrigin = [ domain ];
|
||||||
|
@ -47,6 +51,7 @@ in {
|
||||||
sslCertPath = "/var/lib/acme/${domain}/cert.pem";
|
sslCertPath = "/var/lib/acme/${domain}/cert.pem";
|
||||||
sslKeyPath = "/var/lib/acme/${domain}/key.pem";
|
sslKeyPath = "/var/lib/acme/${domain}/key.pem";
|
||||||
dhParamPath = config.security.dhparams.params.hedgedoc.path;
|
dhParamPath = config.security.dhparams.params.hedgedoc.path;
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue