Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

PandaRSS self-service system installation configuration

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

PandaRSS is a self-service system based on ToughRADIUS V2 version API provided by a third-party developer (pandaman).

PandaRSS provides an online service channel for ToughRADIUS users.

Currently, PandaRSS implements the following functions:

Order and open an account online through Alipay package fees.

Support existing accounts to log in and view account information.

Support the existing account to change the password.

Support existing accounts to view transaction records.

Quick Guide operating Environment

Linux

Python 2.7

Pip

Twisted > = 15.0.0 optional

Bottle > = 0.12.7

Install pip install-U https://github.com/PandaPark/PandaRSS/archive/master.zip or pip install pandarss configuration

Add a new configuration file / etc/pandarss.conf with the following contents

[system] host = 0.0.0.0port = 1819home_site = www.mydomain.comapi_url = http://x.x.x.x:1816/api/v1api_key = CRTCcMB7tfnXU8aXIyfavfuqruvXkNngsession_secret = CRTCcMB7tfnXU8aXIyfavfuqruvXkNng [alipay] alipay_key = jrid3242fs52234scxdzqoajmwwalipay_partner = 2342342342342alipay_seller_email = mypay@xxxx.comalipay_return_url = http://www.mydomain.com/alipay/returnalipay_notify_url = http://www.mydomain.com/order/verify

Api_url: please fill in the server address of the deployed ToughRADIUS, replace ip, and port

Api_key: please fill in the security key of the deployed ToughRADIUS

Session_secret: a 32-bit string used for cookie encryption

Alipay configuration parameters, please use Alipay to pay directly to the account according to the parameters provided by your Alipay application. To use Alipay, the server needs to bind a domain name, which is recommended through proxy servers such as nginx.

Running

Enter pandarss to run directly in non-daemon mode, press Ctrl+C to exit.

To run in daemon mode, use the nohup command:

Nohup pandarss &

The default pandarss operation mode has low performance and can be run using the twisted-based asynchronous high-performance network framework

Nohup pandarss_txrun & bind to the ToughRADIUS service to run

If your ToughRADIUS is installed in local mode, you can configure the pandarss process in the service process of ToughRADIUS.

Modify / etc/toughradius.conf to add the following

[program:pandarss] command=pandarss_txrunstartretries = 10autorestart = trueredirect_stderr=truestdout_logfile=/var/toughradius/pandarss.log

In this way, pandarss can start and stop with the process of toughradius.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report