From 854f574800270191186ddcc2f787b42a2ac863ba Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 5 Apr 2024 18:40:41 +0200 Subject: default editor mode for pads I don't want to leak pads by accident or random people dumping stuff in my hedgedoc instance. --- nix/hosts/corrino/www/md.emile.space.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix/hosts/corrino/www/md.emile.space.nix b/nix/hosts/corrino/www/md.emile.space.nix index 29ddc67..2fb2ee4 100644 --- a/nix/hosts/corrino/www/md.emile.space.nix +++ b/nix/hosts/corrino/www/md.emile.space.nix @@ -76,6 +76,11 @@ in { # Only applied if domain is set. protocolUseSSL = true; + # don't allow unauthenticated people to just write somewhere + allowAnonymous = false; + + defaultPermission = "private"; + db = { dialect = "sqlite"; storage = "/var/lib/hedgedoc/db.sqlite"; -- cgit 1.4.1