about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-04-05 18:40:41 +0200
committerEmile <git@emile.space>2024-04-05 18:40:41 +0200
commit854f574800270191186ddcc2f787b42a2ac863ba (patch)
tree8c216927a35aad206e5157ed5982d37df1b3bee9
parent31ecdc7585c81902830dc46fee85841847482e92 (diff)
default editor mode for pads
I don't want to leak pads by accident or random people dumping stuff
in my hedgedoc instance.
-rw-r--r--nix/hosts/corrino/www/md.emile.space.nix5
1 files changed, 5 insertions, 0 deletions
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";