Skip to content

Commit c9b0364

Browse files
authored
Merge pull request #242 from neutrons/ewm9994-add-robots.txt-and-other-standard-files
Changes for nginx to support robots.txt and other standard files
2 parents 4e1e12d + 37cb876 commit c9b0364

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

nginx/django.conf

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,28 @@ server {
4949
location /stats/nginx {
5050
stub_status on;
5151
}
52-
}
5352

53+
location = /robots.txt {
54+
add_header Content-Type text/plain;
55+
return 200 "User-agent: *\nDisallow: /\n";
56+
}
57+
58+
location = /apple-touch-icon.png {
59+
alias /var/www/workflow/static/apple-touch-icon.png;
60+
expires 30d;
61+
}
62+
63+
location = /apple-touch-icon-precomposed.png {
64+
alias /var/www/workflow/static/apple-touch-icon-precomposed.png;
65+
expires 30d;
66+
}
67+
68+
location ^~ /.well-known/ {
69+
add_header Content-Type text/plain;
70+
return 404 'Not found\n';
71+
}
72+
73+
}
5474

5575
server {
5676

0 commit comments

Comments
 (0)