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; }