summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-05-28 18:37:55 +0200
committerlassulus <lassulus@lassul.us>2022-05-28 18:37:55 +0200
commit88a61c26119968fee629de120fdffe3e4d6312bd (patch)
tree2fa992dfef4b41ea734282559ccee0c65468139a /lass/2configs
parentc79ecd830f86d2075cfbdb5cd2221b5536e07881 (diff)
l codimd: allow embedding
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/codimd.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/lass/2configs/codimd.nix b/lass/2configs/codimd.nix
index 271dcfca4..b3bf1b761 100644
--- a/lass/2configs/codimd.nix
+++ b/lass/2configs/codimd.nix
@@ -28,6 +28,10 @@ in {
params.hedgedoc = {};
};
+ systemd.services.hedgedoc.environment = {
+ CMD_COOKIE_POLICY = "none";
+ CMD_CSP_ALLOW_FRAMING = "true";
+ };
services.hedgedoc = {
enable = true;
configuration.allowOrigin = [ domain ];
@@ -47,6 +51,7 @@ in {
sslCertPath = "/var/lib/acme/${domain}/cert.pem";
sslKeyPath = "/var/lib/acme/${domain}/key.pem";
dhParamPath = config.security.dhparams.params.hedgedoc.path;
+
};
};
}