mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
X-Robots-Tag "noindex, nofollow"
This commit is contained in:
@@ -206,6 +206,7 @@ def create_version_location(
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
add_header x-ofm-debug 'specific JSON {area} {version}';
|
||||
}}
|
||||
@@ -224,6 +225,7 @@ def create_version_location(
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
add_header x-ofm-debug 'specific PBF {area} {version}';
|
||||
}}
|
||||
@@ -268,6 +270,7 @@ def create_latest_locations(*, local: str, domain: str) -> str:
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
add_header x-ofm-debug 'latest JSON {area}';
|
||||
}}
|
||||
@@ -289,6 +292,7 @@ def create_latest_locations(*, local: str, domain: str) -> str:
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
add_header x-ofm-debug 'wildcard JSON {area}';
|
||||
}}
|
||||
@@ -309,6 +313,7 @@ def create_latest_locations(*, local: str, domain: str) -> str:
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
add_header x-ofm-debug 'wildcard PBF {area}';
|
||||
}}
|
||||
|
||||
@@ -22,12 +22,16 @@ server {
|
||||
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
|
||||
ssl_prefer_server_ciphers off;
|
||||
|
||||
|
||||
# access log doesn't contain IP address
|
||||
access_log off;
|
||||
#access_log /data/ofm/http_host/logs_nginx/le-access.jsonl access_json buffer=128k;
|
||||
|
||||
error_log /data/ofm/http_host/logs_nginx/le-error.log;
|
||||
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
# trailing slash
|
||||
root /data/nginx/acme-challenges;
|
||||
@@ -52,6 +56,7 @@ server {
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
}
|
||||
|
||||
# catch-all block to deny all other requests
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
# Serve robots.txt that blocks all crawlers
|
||||
#location = /robots.txt {
|
||||
# add_header Content-Type text/plain;
|
||||
#return 200 "User-agent: *\nDisallow: /\n";
|
||||
#}
|
||||
|
||||
location /fonts/ {
|
||||
# trailing slash
|
||||
|
||||
@@ -8,6 +14,8 @@ location /fonts/ {
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
}
|
||||
|
||||
location /natural_earth/ {
|
||||
@@ -20,6 +28,8 @@ location /natural_earth/ {
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
}
|
||||
|
||||
location /sprites/ {
|
||||
@@ -32,6 +42,8 @@ location /sprites/ {
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +59,7 @@ location @empty_tile {
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
add_header x-ofm-debug 'empty tile';
|
||||
}
|
||||
|
||||
@@ -28,6 +28,9 @@ server {
|
||||
|
||||
error_log /data/ofm/http_host/logs_nginx/roundrobin-error.log;
|
||||
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
|
||||
__LOCATION_BLOCKS__
|
||||
|
||||
location /styles/ {
|
||||
@@ -46,6 +49,8 @@ server {
|
||||
|
||||
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||
add_header Cache-Control public;
|
||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
||||
|
||||
}
|
||||
|
||||
# catch-all block to deny all other requests
|
||||
|
||||
Reference in New Issue
Block a user