Merge pull request #121 from coreos-inc/robots

Add support for custom robots.txt in conf/stack
This commit is contained in:
Jake Moshenko 2015-06-17 15:48:30 -04:00
commit ee154c37a8
3 changed files with 8 additions and 1 deletions

View file

@ -38,6 +38,7 @@ ADD . .
# Run grunt
RUN cd grunt && grunt
ADD conf/init/copy_robots_txt.sh /etc/my_init.d/
ADD conf/init/doupdatelimits.sh /etc/my_init.d/
ADD conf/init/copy_syslog_config.sh /etc/my_init.d/
ADD conf/init/runmigration.sh /etc/my_init.d/

6
conf/init/copy_robots_txt.sh Executable file
View file

@ -0,0 +1,6 @@
#! /bin/sh
if [ -e /conf/stack/robots.txt ]
then
cp /conf/stack/robots.txt /static/robots.txt
fi

View file

@ -1,2 +1,2 @@
User-agent: *
Disallow: /api/
Disallow: /