From 191f84fd0b9baf213cdb42d9526df4072ad00cac Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 11 Jun 2015 12:33:21 -0400 Subject: [PATCH 1/2] Add support for custom robots.txt in conf/stack Fixes #115 --- Dockerfile | 1 + conf/init/copy_robots_txt.sh | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 conf/init/copy_robots_txt.sh diff --git a/Dockerfile b/Dockerfile index d1307b102..7d0992a2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/conf/init/copy_robots_txt.sh b/conf/init/copy_robots_txt.sh new file mode 100755 index 000000000..7a845fe03 --- /dev/null +++ b/conf/init/copy_robots_txt.sh @@ -0,0 +1,6 @@ +#! /bin/sh + +if [ -e /conf/stack/robots.txt ] +then + cp /conf/stack/robots.txt /static/robots.txt +fi \ No newline at end of file From ba1328eefa7599c16bf3d01f5bd2387df5cb7be6 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 17 Jun 2015 15:45:03 -0400 Subject: [PATCH 2/2] Change default robots.txt to disallow everything; we now override it in the production config --- static/robots.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/robots.txt b/static/robots.txt index d34624918..1f53798bb 100644 --- a/static/robots.txt +++ b/static/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Disallow: /api/ +Disallow: /