hedgedoc: reduce log spam, disallow scraping
This commit is contained in:
parent
a38bc1a12b
commit
5c00567283
|
@ -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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue