diff options
author | lassulus <lassulus@lassul.us> | 2022-05-28 18:37:55 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-05-28 18:37:55 +0200 |
commit | 88a61c26119968fee629de120fdffe3e4d6312bd (patch) | |
tree | 2fa992dfef4b41ea734282559ccee0c65468139a /lass/2configs | |
parent | c79ecd830f86d2075cfbdb5cd2221b5536e07881 (diff) |
l codimd: allow embedding
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/codimd.nix | 5 |
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; + }; }; } |