chenqiyux/lan-clip

By chenqiyux

Updated over 1 year ago

局域网云剪切板 精简镜像 LAN cloud clipboard mini

Image
2

10K+

chenqiyux/lan-clip repository overview


云剪贴板服务配置

1.修复重启无法存储问题

GitHub 项目: TransparentLC/cloud-clipboard

Docker 容器运行命令:

docker container run -d --name localpaste -p 9501:9501 chenqiyux/lan-clip

修改配置文件: /app/server-node/config.json

{
    "server": {
        "host": [
            "127.0.0.1",
            "::1"
        ],
        "port": 9501,
        "key": "localhost-key.pem",
        "cert": "localhost.pem",
        "history": 10,
        "auth": false
    },
    "text": {
        "limit": 4096
    },
    "file": {
        "expire": 3600,
        "chunk": 1048576,
        "limit": 104857600
    }
}

配置说明:

  • server:

    • host: 监听的 IP 地址,省略或设为 null 则会监听所有网卡的 IP 地址。
    • port: 端口号。
    • key: HTTPS 私钥路径。
    • cert: HTTPS 证书路径。
    • history: 消息历史记录的数量。
    • auth: 是否在连接时要求使用密码认证,falsy 值表示不使用。
  • text:

    • limit: 文本的长度限制。
  • file:

    • expire: 上传文件的有效期,超过有效期后自动删除,单位为秒。
    • chunk: 上传文件的分片大小,不能超过 5 MB,单位为 byte。
    • limit: 上传文件的大小限制,单位为 byte。

注意事项:

  • 需要删除注释后保存 config.json,如果修改后无法启动,可以尝试重置容器。

Tag summary

Content type

Image

Digest

sha256:3fb21ddf6

Size

86.7 MB

Last updated

over 1 year ago

docker pull chenqiyux/lan-clip