customizations:
javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime
css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime
+ # Robot.txt rules. To allow robots to crawl your instance and allow indexation of your site, remove the '/'
+ robots: |
+ User-agent: *
+ Disallow: /
services:
# Cards configuration to format video in Twitter
customizations:
javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime
css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime
+ # Robot.txt rules. To allow robots to crawl your instance and allow indexation of your site, remove the '/'
+ robots: |
+ User-agent: *
+ Disallow: /
services:
# Cards configuration to format video in Twitter
asyncMiddleware(getPreview)
)
+// robots.txt service
+staticRouter.get('/robots.txt', (req: express.Request, res: express.Response) => {
+ res.type('text/plain')
+ return res.send(CONFIG.INSTANCE.ROBOTS)
+})
+
// ---------------------------------------------------------------------------
export {
'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[] = []
CUSTOMIZATIONS: {
get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') },
get CSS () { return config.get<string>('instance.customizations.css') }
- }
+ },
+ get ROBOTS () { return config.get<string>('instance.robots') }
},
SERVICES: {
TWITTER: {