mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
1f55c90037
refs #9866 - we fallback to v0.1 by default - we support different formats - this opens the box to switch the ghost api version for the whole blog site - i had to add a different notation for overrides.json, because the structure is not optimal (i only want the versions, not the shortcuts)
85 lines
2.9 KiB
JSON
85 lines
2.9 KiB
JSON
{
|
|
"paths": {
|
|
"appRoot": ".",
|
|
"corePath": "core/",
|
|
"clientAssets": "core/built/assets",
|
|
"helperTemplates": "core/server/helpers/tpl/",
|
|
"adminViews": "core/server/web/admin/views/",
|
|
"defaultViews": "core/server/views/",
|
|
"defaultSettings": "core/server/services/settings/",
|
|
"internalAppPath": "core/server/apps/",
|
|
"internalStoragePath": "core/server/adapters/storage/",
|
|
"internalSchedulingPath": "core/server/adapters/scheduling/",
|
|
"migrationPath": "core/server/data/migrations",
|
|
"publicFilePath": "core/server/public"
|
|
},
|
|
"apps": {
|
|
"internal": [
|
|
"private-blogging",
|
|
"subscribers",
|
|
"amp"
|
|
]
|
|
},
|
|
"slugs": {
|
|
"reserved": ["admin", "app", "apps", "categories",
|
|
"category", "dashboard", "feed", "ghost-admin", "login", "logout",
|
|
"page", "pages", "post", "posts", "public", "register", "setup",
|
|
"signin", "signout", "signup", "user", "users", "wp-admin", "wp-login"],
|
|
"protected": ["ghost", "rss", "amp"]
|
|
},
|
|
"uploads": {
|
|
"subscribers": {
|
|
"extensions": [".csv"],
|
|
"contentTypes": ["text/csv", "application/csv", "application/octet-stream"]
|
|
},
|
|
"images": {
|
|
"extensions": [".jpg", ".jpeg", ".gif", ".png", ".svg", ".svgz"],
|
|
"contentTypes": ["image/jpeg", "image/png", "image/gif", "image/svg+xml"]
|
|
},
|
|
"icons": {
|
|
"extensions": [".png", ".ico"],
|
|
"contentTypes": ["image/png", "image/x-icon", "image/vnd.microsoft.icon"]
|
|
},
|
|
"db": {
|
|
"extensions": [".json", ".zip"],
|
|
"contentTypes": ["text/plain", "application/octet-stream", "application/json", "application/zip", "application/x-zip-compressed"]
|
|
},
|
|
"themes": {
|
|
"extensions": [".zip"],
|
|
"contentTypes": ["application/zip", "application/x-zip-compressed", "application/octet-stream"]
|
|
},
|
|
"redirects": {
|
|
"extensions": [".json"],
|
|
"contentTypes": ["text/plain", "application/octet-stream", "application/json"]
|
|
},
|
|
"routes": {
|
|
"extensions": [".yaml"],
|
|
"contentTypes": ["text/plain", "text/yaml", "application/octet-stream", "application/yaml", "application/x-yaml"]
|
|
}
|
|
},
|
|
"times": {
|
|
"cannotScheduleAPostBeforeInMinutes": 2,
|
|
"publishAPostBySchedulerToleranceInMinutes": 2,
|
|
"getImageSizeTimeoutInMS": 5000
|
|
},
|
|
"maintenance": {
|
|
"enabled": false
|
|
},
|
|
"api": {
|
|
"versions": {
|
|
"all": ["v0.1", "v2"],
|
|
"active": "v2",
|
|
"stable": "",
|
|
"deprecated": "v0.1",
|
|
"v2": {
|
|
"admin": "v2/admin",
|
|
"content": "v2/content"
|
|
},
|
|
"v0.1": {
|
|
"admin": "v0.1",
|
|
"content": "v0.1"
|
|
}
|
|
}
|
|
}
|
|
}
|