Skip to content

Commit

Permalink
fix: hide internal page on google
Browse files Browse the repository at this point in the history
  • Loading branch information
emalfroy authored and ArneD committed Sep 5, 2023
1 parent 85d97cb commit 368eff2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions site/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -114,42 +114,53 @@ server {
proxy_redirect off;
proxy_ssl_server_name on;
proxy_pass https://api.${REPLACE_ALIAS_ZONE_NAME}/foutmeldingen;
proxy_set_header X-Robots-Tag "noindex, nofollow";
}

location /basisregisters-api/v1 {
proxy_redirect off;
proxy_ssl_server_name on;
proxy_pass https://api.${REPLACE_ALIAS_ZONE_NAME}/v1;
proxy_set_header X-Robots-Tag "noindex, nofollow";
}

location /basisregisters-api/v2 {
proxy_redirect off;
proxy_ssl_server_name on;
proxy_pass https://api.${REPLACE_ALIAS_ZONE_NAME}/v2;
proxy_set_header X-Robots-Tag "noindex, nofollow";
}

location ^~ /assets/oslo {
proxy_redirect off;
proxy_ssl_server_name on;
proxy_pass https://raw.githubusercontent.com/Informatievlaanderen/data.vlaanderen.be-generated/dev;
proxy_set_header X-Robots-Tag "noindex, nofollow";
}

location /assets/locales {
proxy_redirect off;
proxy_ssl_server_name on;
proxy_pass https://raw.githubusercontent.com/Informatievlaanderen/base-registries-content/${REPLACE_ALIAS_BRANCH_CONTENT}/locales;
proxy_set_header X-Robots-Tag "noindex, nofollow";
}

location /wiki {
proxy_redirect off;
proxy_ssl_server_name on;
proxy_pass https://raw.githubusercontent.com/wiki;
proxy_set_header X-Robots-Tag "noindex, nofollow";
}

location /github {
proxy_redirect off;
proxy_ssl_server_name on;
proxy_pass https://api.github.com/orgs/Informatievlaanderen;
proxy_set_header X-Robots-Tag "noindex, nofollow";
}

location /status {
proxy_set_header X-Robots-Tag "noindex, nofollow";
}

location ~ /\.git {
Expand Down

0 comments on commit 368eff2

Please sign in to comment.