1 Star 0 Fork 7

萧萧恋 / PandaRSS

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

#PandaRSS

PandaRSS 是一个基于 ToughRADIUS V2版本 API 的自助服务系统。

快速指南

运行环境

  • Linux
  • Python 2.7
  • pip
  • Twisted>=15.0.0 可选
  • bottle>=0.12.7

安装

pip  install -U  https://github.com/PandaPark/PandaRSS/archive/master.zip

配置

新增加一个配置文件 /etc/pandarss.conf,内容如下

[system]
host = 0.0.0.0
port = 1819
home_site = www.mydomain.com
api_url = http://x.x.x.x:1816/api/v1
api_key = CRTCcMB7tfnXU8aXIyfavfuqruvXkNng
session_secret = CRTCcMB7tfnXU8aXIyfavfuqruvXkNng

[alipay]
alipay_key = jrid3242fs52234scxdzqoajmww
alipay_partner = 2342342342342
alipay_seller_email = mypay@xxxx.com
alipay_return_url = http://www.mydomain.com/alipay/return
alipay_notify_url = http://www.mydomain.com/order/verify
  • api_url: 请填写部署的ToughRADIUS的服务器地址,替换ip,端口即可
  • api_key: 请填写部署的ToughRADIUS的安全密钥
  • session_secret: 一个32位的字符串,用来做cookie加密

支付宝配置参数,请根据你的支付宝申请的直接到账支付提供的参数,要使用支付宝支付,服务器需要绑定域名,建议通过nginx等代理服务器实现。

运行

输入 pandarss 会直接以非守护进程模式运行,按Ctrl+C可退出。

若要以守护进程模式运行,可使用nohup命令:

nohup pandarss &

默认的 pandarss 运行模式性能不高,可以使用基于twisted异步高性能网络框架来运行

nohup pandarss_txrun &

绑定到ToughRADIUS服务运行

如果你的ToughRADIUS是以本地模式安装的,可以在ToughRADIUS的服务进程中配置pandarss进程。

修改 /etc/toughradius.conf, 加入以下内容

[program:pandarss]
command=pandarss_txrun
startretries = 10
autorestart = true
redirect_stderr=true
stdout_logfile=/var/toughradius/pandarss.log

这样pandarss可以随toughradius的进程启动停止。

Copyright (c) 2016, pandaman All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the {organization} nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

ToughRADIUS 网上营业厅系统 展开 收起
Python
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/len/PandaRSS.git
git@gitee.com:len/PandaRSS.git
len
PandaRSS
PandaRSS
master

搜索帮助