mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
bd597db829
- This is part of the quest to separate the frontend and server & get rid of all the places where there are cross-requires - At the moment the settings cache is one big shared cache used by the frontend and server liberally - This change doesn't really solve the fundamental problems, as we still depend on events, and requires from inside frontend - However it allows us to control the misuse slightly better by getting rid of restricted requires and turning on that eslint ruleset
34 lines
1 KiB
JavaScript
34 lines
1 KiB
JavaScript
/**
|
|
* The settings with type "site" were originally meant to be public
|
|
* This has been misused - unsplash and slack are incorrectly stored there
|
|
* https://github.com/TryGhost/Ghost/issues/10318
|
|
*
|
|
* This file acts as a new whitelist for "public" settings
|
|
*/
|
|
|
|
module.exports = {
|
|
title: 'title',
|
|
description: 'description',
|
|
logo: 'logo',
|
|
icon: 'icon',
|
|
accent_color: 'accent_color',
|
|
cover_image: 'cover_image',
|
|
facebook: 'facebook',
|
|
twitter: 'twitter',
|
|
lang: 'lang',
|
|
locale: 'lang',
|
|
timezone: 'timezone',
|
|
codeinjection_head: 'codeinjection_head',
|
|
codeinjection_foot: 'codeinjection_foot',
|
|
navigation: 'navigation',
|
|
secondary_navigation: 'secondary_navigation',
|
|
meta_title: 'meta_title',
|
|
meta_description: 'meta_description',
|
|
og_image: 'og_image',
|
|
og_title: 'og_title',
|
|
og_description: 'og_description',
|
|
twitter_image: 'twitter_image',
|
|
twitter_title: 'twitter_title',
|
|
twitter_description: 'twitter_description',
|
|
members_support_address: 'members_support_address'
|
|
};
|