From ac235c37e2d7112efbc182e0179cb27e75ef09a1 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 15 May 2018 00:29:40 +0200 Subject: robots.txt config and route --- server/initializers/checker.ts | 2 +- server/initializers/constants.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'server/initializers') diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts index 9bf53e940..c11dc7a89 100644 --- a/server/initializers/checker.ts +++ b/server/initializers/checker.ts @@ -29,7 +29,7 @@ function checkMissedConfig () { 'user.video_quota', 'cache.previews.size', 'admin.email', 'signup.enabled', 'signup.limit', 'transcoding.enabled', 'transcoding.threads', 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route', - 'instance.default_nsfw_policy', + 'instance.default_nsfw_policy', 'instance.robots', 'services.twitter.username', 'services.twitter.whitelisted' ] const miss: string[] = [] diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 5a7d91160..51d272895 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -180,7 +180,8 @@ const CONFIG = { CUSTOMIZATIONS: { get JAVASCRIPT () { return config.get('instance.customizations.javascript') }, get CSS () { return config.get('instance.customizations.css') } - } + }, + get ROBOTS () { return config.get('instance.robots') } }, SERVICES: { TWITTER: { -- cgit v1.2.3