From 470198033a96bf278bf5dc39636f8177dd48d51f Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 10 Jan 2021 18:23:45 +0100 Subject: [PATCH] Add robots.txt --- index.js | 1 + robots.txt | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 robots.txt diff --git a/index.js b/index.js index d920c9e..e8f3e65 100644 --- a/index.js +++ b/index.js @@ -44,6 +44,7 @@ app.set('keyoxide_version', packageData.version); app.set('onion_url', process.env.ONION_URL); app.use('/favicon.svg', express.static('favicon.svg')); +app.use('/robots.txt', express.static('robots.txt')); app.use(stringReplace({ PLACEHOLDER__XMPP_VCARD_SERVER_DOMAIN: process.env.XMPP_VCARD_SERVER_DOMAIN || 'xmpp-vcard.keyoxide.org' diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..1af201e --- /dev/null +++ b/robots.txt @@ -0,0 +1,6 @@ +User-agent: * +Allow: /$ +Allow: /guides +Allow: /getting-started +Allow: /faq +Disallow: / \ No newline at end of file