Sign inSign up

jericx/syncclipboard-server

By jericx

Updated about 12 hours ago

跨平台剪贴板同步方案 / Cross-Platform Cipboard Syncing Solution

Image
Internet of things
Web servers
7

100K+

jericx/syncclipboard-server repository overview

SyncClipboard 独立服务端 | Dedicated server

使用方法 | Usage

示例代码片段 | Example snippets
docker cli
docker run -d \
  --name=syncclipboard-server \
  -p 5033:5033 \
  --restart unless-stopped \
  jericx/syncclipboard-server:latest

服务端配置 | Server Conf

当你想自己配置服务器设置时,请按照以下模板在宿主机中创建一个 appsettings.json 文件,并按照自己的需要修改端口,账号和密码:

When you wish to configure server settings on your own, follow the template below to create an appsettings.json file on the host machine. Modify the port, username, and password according to your requirements:

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*",
  "Kestrel": {
    "Endpoints": {
      "Http": {
        "Url": "http://0.0.0.0:5033"
      }
    }
  },
  "AppSettings": {
    "UserName": "admin",
    "Password": "admin"
  }
}

并将其映射至容器中,此时docker cli代码片段如下:

Map it into the container, so the Docker CLI snippet for this would be as follows:

docker run -d \
  --name=syncclipboard-server \
  -p 5033:5033 \
  -v /path/to/appsettings.json:/app/appsettings.json \
  --restart unless-stopped \
  jericx/syncclipboard-server:latest

参数 | Parameter

参数 | Parameter功能 | Function
--name自定义容器名称 | Custom container name
-p 5033端口映射 | Port mapping, [hostport:containerport]
-v /appsettings.json路径映射 | Volume mapping, [hostpath:containerpath]
--restart重启策略 | Restart Policy

Tag summary

Content type

Image

Digest

sha256:4165067bd

Size

111.9 MB

Last updated

about 1 month ago

docker pull jericx/syncclipboard-server