1 Star 0 Fork 39

点星PBX / rttys

forked from 赵建辉 / rttys 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

rttys

license PRs Welcome Issue Welcome Release Version Build Status

这是rtty的服务器程序。

如何使用

Release页面下载编译好的二进制文件或者自己编译

go get -u github.com/zhaojh329/rttys

更新 statik

go get github.com/rakyll/statik
statik -src=frontend/dist

命令行参数

./rttys -h
Usage of rttys:
  -addr-dev string
        address to listen device (default ":5912")
  -addr-user string
        address to listen user (default ":5913")
  -conf string
        config file to load (default "./rttys.conf")
  -gen-token
        generate token
  -http-password string
        password for http auth
  -http-username string
        username for http auth
  -log string
        log file path (default "/var/log/rttys.log")
  -ssl-cert string
        certFile Path
  -ssl-key string
        keyFile Path
  -token string
        token to use
  -white-list string
        white list(device IDs separated by spaces or *)

认证

./rttys -gen-token
Please set a password:******
Your token is: 34762d07637276694b938d23f10d7164

./rttys -token 34762d07637276694b938d23f10d7164

作为Linux服务运行

移动rttys可执行程序到/usr/local/bin/

sudo mv rttys /usr/local/bin/

拷贝配置文件到/etc/rttys/

sudo mkdir /etc/rttys
sudo cp rttys.conf /etc/rttys/

创建一个systemd单元文件: /etc/systemd/system/rttys.service

[Unit]
Description=rttys
After=network.target

[Service]
ExecStart=/usr/local/bin/rttys -conf /etc/rttys/rttys.conf
TimeoutStopSec=5s

[Install]
WantedBy=multi-user.target

要首次启动该服务,请执行通常的systemctl操作:

sudo systemctl daemon-reload
sudo systemctl enable rttys
sudo systemctl start rttys

您可以通过以下方式停止服务:

sudo systemctl stop rttys

贡献代码

如果你想帮助rttys变得更好,请参考 CONTRIBUTING_ZH.md

MIT License Copyright (c) 2019 Jianhui Zhao <zhaojh329@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

rtty 的服务端 展开 收起
Go
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/dotasterisk/rttys.git
git@gitee.com:dotasterisk/rttys.git
dotasterisk
rttys
rttys
master

搜索帮助