Giter VIP home page Giter VIP logo

Comments (8)

lvbibir avatar lvbibir commented on September 25, 2024

另附 piclist 配置文件 (文档没有说明, 直接用的桌面端配置文件)

{
  "picBed": {
    "current": "aliyun",
    "uploader": "aliyun",
    "picgoPlugins": {}
  },
  "aliyun": {
    "accessKeyId": "************",
    "accessKeySecret": "************",
    "bucket": "lvbibir-image",
    "area": "oss-cn-beijing",
    "path": "blog/",
    "customUrl": "https://image.lvbibir.cn",
    "options": ""
  },
  "picgoPlugins": {}
}

from piclist.

Kuingsmile avatar Kuingsmile commented on September 25, 2024

部署docker的时候,命令里有个-k 参数,在obsidian里填上传地址的时候,需要最后加上?key=xxx,xxx是你的-k 参数对应的值

from piclist.

Kuingsmile avatar Kuingsmile commented on September 25, 2024

还有obsidian插件需要打开远程服务器模式

from piclist.

lvbibir avatar lvbibir commented on September 25, 2024

我把 key 改简单后 Unauthorized access 报错没了, 但是新报错找不到 aliyun 配置, 我上面提供的配置文件有问题吗

(13)$ docker logs -f piclist
startup
[PicList Server] is listening at 36677
[PicList Server] upload files in list
[PicList INFO]: Before transform
[PicList INFO]: Transforming... Current transformer is [path]
[PicList INFO]: Before upload
[PicList INFO]: Uploading... Current uploader is [aliyun]
[PicList WARN]: failed
[PicList ERROR]: Error: Can't find aliYun OSS config
    at Object.Ht [as handle] (/usr/local/share/.config/yarn/global/node_modules/piclist/dist/index.cjs.js:1:55247)
    at dt.doUpload (/usr/local/share/.config/yarn/global/node_modules/piclist/dist/index.cjs.js:1:37203)
    at dt.start (/usr/local/share/.config/yarn/global/node_modules/piclist/dist/index.cjs.js:1:35943)
    at async Lr.upload (/usr/local/share/.config/yarn/global/node_modules/piclist/dist/index.cjs.js:1:128266)
    at async /usr/local/share/.config/yarn/global/node_modules/piclist/bin/picgo-server:197:22
[PicList Server] upload result

from piclist.

Kuingsmile avatar Kuingsmile commented on September 25, 2024
{
  "picBed": {
    "uploader": "local",
    "current": "local",
    "aliyun": {
      "accessKeyId": "xxx",
      "accessKeySecret": "xxx",
      "bucket": "xxx",
      "area": "oss-cn-hangzhou",
      "path": "test/",
      "customUrl": "",
      "options": ""
    },
  },
}

类似这样写

from piclist.

lvbibir avatar lvbibir commented on September 25, 2024
{
  "picBed": {
    "uploader": "local",
    "current": "local",
    "aliyun": {
      "accessKeyId": "xxx",
      "accessKeySecret": "xxx",
      "bucket": "xxx",
      "area": "oss-cn-hangzhou",
      "path": "test/",
      "customUrl": "",
      "options": ""
    },
  },
}

类似这样写

这样改可以了
image

还有两个小问题

  • 最开始的 Unauthorized access 报错, 我最开始设置的 key 包含 !@# 等字符, 是我写法的问题还是暂不支持
  • 删除的接口应该如何调用, 必须使用客户端嘛

from piclist.

Kuingsmile avatar Kuingsmile commented on September 25, 2024
{
  "picBed": {
    "uploader": "local",
    "current": "local",
    "aliyun": {
      "accessKeyId": "xxx",
      "accessKeySecret": "xxx",
      "bucket": "xxx",
      "area": "oss-cn-hangzhou",
      "path": "test/",
      "customUrl": "",
      "options": ""
    },
  },
}

类似这样写

这样改可以了 image

还有两个小问题

  • 最开始的 Unauthorized access 报错, 我最开始设置的 key 包含 !@# 等字符, 是我写法的问题还是暂不支持
  • 删除的接口应该如何调用, 必须使用客户端嘛

key里如果有特殊字符,应该需要做URL编码,然后删除接口只有客户端有

from piclist.

lvbibir avatar lvbibir commented on September 25, 2024

可以了,完美解决,删除接口我问问插件作者

from piclist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.