u2sb u2sb
Home
  • 弹幕服务器 (opens new window)
  • MetingJS.Server
  • vuepress-plugin-smplayer
  • vuepress-plugin-vssue-global (opens new window)
  • hexo-tag-mmedia
  • 通用弹幕服务器
  • OBS导播键盘
GitHub (opens new window)
Home
  • 弹幕服务器 (opens new window)
  • MetingJS.Server
  • vuepress-plugin-smplayer
  • vuepress-plugin-vssue-global (opens new window)
  • hexo-tag-mmedia
  • 通用弹幕服务器
  • OBS导播键盘
GitHub (opens new window)
  • Overview

  • MetingJsServer

    • MetingJS.Server
      • 简介
      • 编译
      • 安装
        • 在阿里云函数计算(FC)上安装
        • 在服务器(Linux)上安装
  • vuepress-plugin-smplayer

  • hexo-tag-mmedia

  • Danmu.Server

  • OpenSw
  • MetingJsServer
MonoLogueChi
2021-02-23
目录
简介
编译
安装
在阿里云函数计算(FC)上安装
在服务器(Linux)上安装

MetingJS.Server

# 简介

这是 MetingJS 的后端服务器,可以部署在自己的服务器上,也可以部署在阿里云函数计算上。

# 编译

非二次开发不需要看这一部分,直接看后面的部署即可。
下载项目,使用 vs 打开,调整参数编译。

# 安装

# 在阿里云函数计算 (FC) 上安装

下载 (opens new window) fc 版本,开通阿里云函数计算

控制台 -> 函数计算 -> 新建函数 -> HTTP函数

默认不需要修改配置,直接上传 fc.zip

函数入口为: MetingJS.Server.Fc::MetingJS.Server.Fc.FcRemoteEntrypoint::HandleRequest

请求地址为 (Meting 填写下方地址) :

https://xxxxxxxxxxxx.cn-shanghai.fc.aliyuncs.com/xxxx-xx-xx/proxy/MetingJS/GetMusic/api/music
或
https://xxxxxxxxxxxx.cn-shanghai.fc.aliyuncs.com/xxxx-xx-xx/proxy/MetingJS/GetMusic/api.php

例如 https://xxxxxxxxxxxx.cn-shanghai.fc.aliyuncs.com/xxxx-xx-xx/proxy/MetingJS/GetMusic/api/music?server=Tencent&type=lrc&id=0008yfgO0dmovi
1
2
3
4
5

# 在服务器 (Linux) 上安装

下载 (opens new window) Linux 版本,上传到服务器,解压,修改 appsettings.yml

KestrelSettings:
  Port:
    - 5000
    - 5001
  UnixSocketPath:
    - "/tmp/metingJS.Server.sock"
AllowedHosts: "*"
WithOrigins:
  - "*"
Url: ""
DefaultServerProvider: "Tencent"
Replace:
  Url:
    - ["http://", "https://"]
    - ["ws.stream.qqmusic.qq.com", "dl.stream.qqmusic.qq.com"]
  Pic:
    - ["http://", "https://"]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

配置项详情如下:

配置项 类型 解释
KestrelSettings.Port int[] 服务使用的端口号
KestrelSettings.UnixSocketPath string[] 服务使用的 unix 域套接字
AllowedHosts string 默认无需修改
WithOrigins string[] 允许跨域列表,可用使用通配符 *
Url string 程序运行的网址,会在返回结果中体现,不懂可用不填,但会牺牲一点性能,填写示例: https://x.sm9.top/api/music https//sm.sm9.top:8080/api/music
Replace.Url string[][] 返回结果中 url 项的替换,url 中前面的字符会被替换为后面的,不懂可用不填
Replace.Pic string[][] 解释见 URL

修改完配置后,运行测试,使用进程守护工具 (Supervisor 或 pm2 等) 守护进程,然后使用反向代理服务器 (caddy 或 nginx 等) 代理端口。

#开源项目#MetingJS.Server
上次更新: 10/4/2022, 11:21:17 PM
公共服务
安装和基本介绍

← 公共服务 安装和基本介绍→

Theme by Vdoing | Copyright © 2018-2025 MonoLogueChi | CC BY-NC-SA 4.0
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式