Add robots.txt

This commit is contained in:
Yarmo Mackenbach 2021-01-10 18:23:45 +01:00
parent 57a7a34287
commit 470198033a
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
2 changed files with 7 additions and 0 deletions

View file

@ -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'

6
robots.txt Normal file
View file

@ -0,0 +1,6 @@
User-agent: *
Allow: /$
Allow: /guides
Allow: /getting-started
Allow: /faq
Disallow: /