Giter Site home page Giter Site logo

zhaiman / tl-rtc-file Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tl-open-source/tl-rtc-file

0.0 0.0 0.0 25.64 MB

webrtc file transfer tool,p2p网页在线文件传输,跨终端,不限平台,内网不限速,支持私有部署,支持多文件拖拽发送,支持本地屏幕录制,远程屏幕共享,远程音视频通话,密码房间,中继服务设置,webrtc检测,文字传输,公共聊天,丰富的后台管理,实时执行日志展示,机器人告警通知等功能

Home Page: https://im.iamtsm.cn

License: Apache License 2.0

Shell 0.02% JavaScript 84.54% CSS 2.49% HTML 12.93% Dockerfile 0.02%

tl-rtc-file's Introduction

tl-rtc-file-tool 【始于文件传输,不止于文件传输】

背景 : 20年毕设的题目相关整理出来的

简介 :(tl webrtc datachannel filetools)用webrt在web端传输文件,支持传输超大文件。

优点 : 分片传输,跨终端,不限平台,方便使用,内网不限速,支持私有部署,支持多文件拖拽发送

扩展 : 扩展了许多丰富的小功能,如本地屏幕录制,远程屏幕共享,远程音视频通话,密码房间,中继服务设置,webrtc检测,文字传输,公共聊天,丰富的后台管理,集成了企微机器人告警通知,实时执行日志展示... 等等

qq交流群 : 624214498

image

准备

安装node,npm后进入项目目录

npm install

进入build目录 : cd build/webpack/  

安装一些依赖 : npm install


如果需要自行开发修改res目录文件, 保持下面两个后台命令开启一个即可

npm run dev 打包开发环境min

npm run pro 打包生产环境min

测试环境

启动以下两个服务

本地启动file-res : npm run dev

本地启动file-socket : npm run devsocket

线上环境 (需要配置wss)

启动以下两个服务

公网环境启动file-res : npm run svr 

公网环境启动file-socket : npm run svrsocket

配置db

修改conf/cfg.json中相应db配置即可, 如open, dbName, host, port, user, pwd 等

配置wss

修改conf/cfg.json中相应ws配置即可,如port, ws_online等

配置turnserver (私有部署)

ubuntu:

1. sudo apt-get install coturn  #安装coturn 

2. cp conf/turn/turnserver.conf /etc/turnserver.conf    #修改配置文件, 文件内容按需修改

3. chomd +x bin/genTurnUser.sh && ./genTurnUser.sh     #文件内容按需修改

4. chomd +x bin/startTurnServer.sh && ./startTurnServer.sh     #启动turnserver,文件内容按需修改

Docker

修改conf/cfg.json中的ws_online的ip地址(有更好的办法可以反馈下)

docker build -t iamtsm/tl-rtc-file .

docker run -p 9092:9092 -p 8444:8444 --name local -d iamtsm/tl-rtc-file

访问 : http://localhost:9092 或者 http://本机ip:9092

管理后台

前提 : 需要开启db配置

修改conf/cfg.json中的router.manage的room和password,默认房间号和密码都是tlrtcfile

访问 : http://localhost:9092 或者 http://本机ip:9092

输入配置的房间号,输入密码,即可进入管理后台

ps : 如有需要配置企业微信通知,修改conf/cfg.json中的notify的qiwei数组,填入企业微信机器人的key即可

Chat-GPT

修改conf/cfg.json中的openai.apiKeys,填写你自己openai账号生成的apiKey

概述图

image

引用致谢

License

Apache License 2.0

tl-rtc-file's People

Contributors

iamtsm avatar

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.