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

View File

@ -34,6 +34,7 @@
tlsca = "/etc/ssl/certs/ca-certificates.crt"; tlsca = "/etc/ssl/certs/ca-certificates.crt";
useridField = "uid"; useridField = "uid";
}; };
loglevel = "warn";
protocolUseSSL = true; protocolUseSSL = true;
sessionSecret = "$sessionSecret"; sessionSecret = "$sessionSecret";
}; };
@ -58,7 +59,10 @@
default = true; default = true;
forceSSL = true; forceSSL = true;
enableACME = 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}";
};
}; };
}; };
}; };