Skip to content

Commit

Permalink
Add robots.txt (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Apr 5, 2024
1 parent 3a6a189 commit f0b2a90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/nginx/odk.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ server {
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml text/csv;

location = /robots.txt {
add_header Content-Type text/plain;
return 200 "User-agent: *\nDisallow: /\n";
}

location /- {
proxy_pass http://enketo:8005;
proxy_redirect off;
Expand Down

0 comments on commit f0b2a90

Please sign in to comment.