mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Added session_secret setting to schema (#9953)
closes #9952 - required by the express-session middleware
This commit is contained in:
parent
9be9531ef8
commit
4ecf7352b5
2 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,9 @@
|
|||
},
|
||||
"notifications": {
|
||||
"defaultValue": "[]"
|
||||
},
|
||||
"session_secret": {
|
||||
"defaultValue": null
|
||||
}
|
||||
},
|
||||
"blog": {
|
||||
|
|
|
@ -17,7 +17,8 @@ function parseDefaultSettings() {
|
|||
defaultSettingsFlattened = {},
|
||||
dynamicDefault = {
|
||||
db_hash: uuid.v4(),
|
||||
public_hash: crypto.randomBytes(15).toString('hex')
|
||||
public_hash: crypto.randomBytes(15).toString('hex'),
|
||||
session_secret: crypto.randomBytes(32).toString('hex')
|
||||
};
|
||||
|
||||
_.each(defaultSettingsInCategories, function each(settings, categoryName) {
|
||||
|
|
Loading…
Add table
Reference in a new issue