mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
25e5cb46de
refs https://github.com/TryGhost/Toolbox/issues/169
refs 7becf0a2b2
- The referenced commit has dropped existance of Content and Admin APIs under `/canary/` prefix, which made a breaking change and clients that are still relying on "canary" started to break.
- The `/canary/` prefix should be used up untill the introduction of Ghost v5, otherwise we run the risk of accidentally breaking API clients.
116 lines
4.0 KiB
JSON
116 lines
4.0 KiB
JSON
{
|
|
"paths": {
|
|
"appRoot": ".",
|
|
"corePath": "core/",
|
|
"clientAssets": "core/built/assets",
|
|
"helperTemplates": "core/frontend/helpers/tpl/",
|
|
"adminViews": "core/server/web/admin/views/",
|
|
"defaultViews": "core/server/views/",
|
|
"defaultRouteSettings": "core/server/services/route-settings/",
|
|
"internalAppPath": "core/frontend/apps/",
|
|
"internalAdaptersPath": "core/server/adapters/",
|
|
"migrationPath": "core/server/data/migrations",
|
|
"publicFilePath": "core/frontend/public"
|
|
},
|
|
"apps": {
|
|
"internal": [
|
|
"private-blogging",
|
|
"amp"
|
|
]
|
|
},
|
|
"slugs": {
|
|
"protected": ["ghost", "rss", "amp"]
|
|
},
|
|
"uploads": {
|
|
"members": {
|
|
"extensions": [".csv"],
|
|
"contentTypes": ["text/csv", "application/csv", "application/octet-stream", "application/vnd.ms-excel"]
|
|
},
|
|
"images": {
|
|
"extensions": [".jpg", ".jpeg", ".gif", ".png", ".svg", ".svgz", ".ico", ".webp"],
|
|
"contentTypes": ["image/jpeg", "image/png", "image/gif", "image/svg+xml", "image/x-icon", "image/vnd.microsoft.icon", "image/webp"]
|
|
},
|
|
"media": {
|
|
"extensions": [".mp4",".webm", ".ogv", ".mp3", ".wav", ".ogg"],
|
|
"contentTypes": [
|
|
"video/mp4",
|
|
"video/webm",
|
|
"video/ogg",
|
|
"audio/mpeg",
|
|
"audio/vnd.wav",
|
|
"audio/wave",
|
|
"audio/wav",
|
|
"audio/x-wav",
|
|
"audio/ogg"
|
|
]
|
|
},
|
|
"thumbnails": {
|
|
"extensions": [".jpg", ".jpeg", ".gif", ".png", ".svg", ".svgz", ".ico", ".webp"],
|
|
"contentTypes": ["image/jpeg", "image/png", "image/gif", "image/svg+xml", "image/x-icon", "image/vnd.microsoft.icon", "image/webp"]
|
|
},
|
|
"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", ".yaml"],
|
|
"contentTypes": ["text/plain", "text/yaml", "application/octet-stream", "application/json", "application/yaml", "application/x-yaml"]
|
|
},
|
|
"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": ["v2", "v3", "v4", "v5", "canary"],
|
|
"default": "v4",
|
|
"canary": {
|
|
"admin": "canary/admin",
|
|
"content": "canary/content"
|
|
},
|
|
"v5": {
|
|
"admin": "admin",
|
|
"content": "content"
|
|
},
|
|
"v4": {
|
|
"admin": "v4/admin",
|
|
"content": "v4/content"
|
|
},
|
|
"v3": {
|
|
"admin": "v3/admin",
|
|
"content": "v3/content"
|
|
},
|
|
"v2": {
|
|
"admin": "v2/admin",
|
|
"content": "v2/content"
|
|
}
|
|
}
|
|
},
|
|
"imageOptimization": {
|
|
"defaultMaxWidth": 2000,
|
|
"contentImageSizes": {
|
|
"w600": {"width": 600},
|
|
"w1000": {"width": 1000},
|
|
"w1600": {"width": 1600},
|
|
"w2400": {"width": 2400}
|
|
}
|
|
}
|
|
}
|