From 3b85e288700b54677507365708862ad2c4699f92 Mon Sep 17 00:00:00 2001 From: Victor Date: Mon, 16 May 2022 14:17:55 +0200 Subject: [PATCH] hedgedoc: fixed perms --- nixos/hosts/gitea/configuration.nix | 2 ++ nixos/hosts/hedgedoc/configuration.nix | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/nixos/hosts/gitea/configuration.nix b/nixos/hosts/gitea/configuration.nix index 5778860..6f9f14c 100644 --- a/nixos/hosts/gitea/configuration.nix +++ b/nixos/hosts/gitea/configuration.nix @@ -32,6 +32,8 @@ database.type = "postgres"; ssh.clonePort = 42; disableRegistration = true; + cookieSecure = true; + settings = { ui = { diff --git a/nixos/hosts/hedgedoc/configuration.nix b/nixos/hosts/hedgedoc/configuration.nix index f0135e4..903749b 100644 --- a/nixos/hosts/hedgedoc/configuration.nix +++ b/nixos/hosts/hedgedoc/configuration.nix @@ -57,8 +57,9 @@ in config.services.hedgedoc.configuration.domain "hedgedoc" ]; + allowAnonymous = false; allowEmailRegister = false; - allowAnonymousEdits = false; + allowAnonymousEdits = true; allowFreeURL = true; requireFreeURLAuthentication = true; imageUploadType = "minio"; @@ -76,10 +77,10 @@ in accessKey = "$MINIO_ACCESS_KEY"; secretKey = "$MINIO_SECRET_KEY"; }; - github = { - clientID = "$GITHUB_CLIENTID"; - clientSecret = "$GITHUB_CLIENTSECRET"; - }; + # github = { + # clientID = "$GITHUB_CLIENTID"; + # clientSecret = "$GITHUB_CLIENTSECRET"; + # }; }; }; }