From 9f73065f23b42080ff36f860c95d69875a7558e6 Mon Sep 17 00:00:00 2001 From: Mark Harding Date: Thu, 12 Nov 2020 15:27:01 +0000 Subject: [PATCH] (chore): point /embed to /embed-static --- containers/nginx/minds.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/containers/nginx/minds.conf b/containers/nginx/minds.conf index 2d4a87cd85..0e32336a6b 100644 --- a/containers/nginx/minds.conf +++ b/containers/nginx/minds.conf @@ -69,6 +69,8 @@ server { add_header 'Access-Control-Allow-Origin' *; add_header X-Frame-Options ""; add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; + + rewrite ^(.+)$ /embed-static/en/embed.html last; } location / { @@ -161,6 +163,10 @@ server { } location /robots.txt { + if ($host != 'www.minds.com') { + return 200 "User-agent: *\nDisallow: /\n"; + } + rewrite ^(.+)$ /sitemaps/robots.txt last; }