MT-Libraries / ghost-oss-store

Ghost Aliyun OSS storage module.
Other
30 stars 17 forks source link

There is no "config.js" file in ghost 1.21.2 #11

Open veyeah opened 6 years ago

veyeah commented 6 years ago

But there is no "config.js" file in ghost 1.21.2 how can i configure my oss-store maybe config.[env].json? if i configure config.production.json file ,then ghost can not restart! Ghost-cli version 1.5.2 Ghost version 1.21.2 can you help me? thanyou very much

通过ghostcli安装的最新版本怎么配置oss-store?没有config.js文件呀~~

hxsf commented 6 years ago

yes. use config.[env].json

like this (replace the upper case value with your own config)

{
    "url": "http://localhost:2368/",
    "server": {
        "port": 2368,
        "host": "0.0.0.0"
    },
    "...": "...",
    "storage": {
        "active": "ghost-oss-store",
        "ghost-oss-store": {
            "accessKeyId": "YOUR ACCESSKEYID",
            "accessKeySecret": "YOUR ACCESSKEYSECRET",
            "bucket": "BUCKET_NAME",
            "region": "YOUR REGION",
            "origin": "YOUR ORIGIN",
            "fileKey": {
                "safeString": true,
                "prefix": "YOUR_PREFIX",
                "suffix": ""
            }
        }
    }
}
veyeah commented 6 years ago

i've try. but it did not work anyway. ghost can't start i use ghost-qn-store instead of oss-store now

hxsf commented 6 years ago

I need some log to ensure what cause it.