Merge pull request #121 from coreos-inc/robots
Add support for custom robots.txt in conf/stack
This commit is contained in:
commit
ee154c37a8
3 changed files with 8 additions and 1 deletions
|
@ -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
6
conf/init/copy_robots_txt.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#! /bin/sh
|
||||
|
||||
if [ -e /conf/stack/robots.txt ]
|
||||
then
|
||||
cp /conf/stack/robots.txt /static/robots.txt
|
||||
fi
|
|
@ -1,2 +1,2 @@
|
|||
User-agent: *
|
||||
Disallow: /api/
|
||||
Disallow: /
|
||||
|
|
Reference in a new issue