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";
|
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}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user