Java set startup environment & add "robots.txt - noLog"

This commit is contained in:
Rigo 2022-05-31 09:45:40 +02:00
parent 9790aa74c7
commit 208d0b7bc2

View File

@ -30,6 +30,7 @@ cat << EOF >>/etc/hosts
0.0.0.0 geoip.elastic.co
EOF
# Java set startup environment
mkdir -p /etc/elasticsearch/jvm.options.d
cat << EOF >>/etc/elasticsearch/jvm.options.d/msmx-size.options
# INFO: https://www.elastic.co/guide/en/elasticsearch/reference/master/advanced-configuration.html#set-jvm-heap-size
@ -104,6 +105,10 @@ server {
add_header X-XSS-Protection "1; mode=block";
add_header Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()";
location = /robots.txt {
access_log off; log_not_found off;
}
location = /favicon.ico {
access_log off; log_not_found off;
}