hedgedoc: reduce log spam, disallow scraping

This commit is contained in:
Sandro - 2023-01-10 00:18:16 +01:00
parent a38bc1a12b
commit 5c00567283
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,7 @@
tlsca = "/etc/ssl/certs/ca-certificates.crt";
useridField = "uid";
};
loglevel = "warn";
protocolUseSSL = true;
sessionSecret = "$sessionSecret";
};
@ -58,7 +59,10 @@
default = true;
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:${toString config.services.hedgedoc.settings.port}";
locations = {
"^~ /robots.txt".return = "200 'User-agent: *\\nDisallow: /'";
"/".proxyPass = "http://localhost:${toString config.services.hedgedoc.settings.port}";
};
};
};
};