Skip to content

Motues/PublicAPI

Repository files navigation

PublicAPI

自用的一些 API 接口。

API 列表

Meting

基于 Meting 的 实现的 API,支持网易云、QQ等音乐平台。

Boring Avatar

基于 boring-avatars 实现的头像生成 API,并集成了 Cravatar 镜像源支持。

部署方式

Docker Compose

wget https://raw.githubusercontent.com/Motues/PublicAPI/main/docker-compose.yml
docker compose up -d

Node.js

git clone https://github.com/Motues/PublicAPI.git
cd PublicAPI
cp .env.example .env # 修改自己环境变量
pnpm install
pnpm start

配置参数

环境变量

需要在程序启动的时候确定,不支持热加载。

配置文件

存放于 /data/config/ 文件夹中,支持热加载,修改后立刻生效,无需重新启动服务。。

如果需要添加站外链接,可以编辑 /data/config/services.json 文件。

[
    {
        "name": "GitHub",
        "url": "https://github.com/Motues",
        "status": "open" // open | close
    },
    { ... }
]

如果需要设置站点信息,,可以编辑 /data/config/site.json 文件。

{
  "siteName": "Public API",
  "description": [
    "A public API service for everyone.",
    "Welcome to use!"
  ],
  "footer": "系统运行良好,欢迎使用!"
}

Made with ❤️ by Motues

如果使用过程中存在问题,欢迎通过邮件告诉我

About

自用的一些 API 接口

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors