No description
Find a file
2016-01-03 07:09:27 +03:00
app fix 2016-01-03 07:09:27 +03:00
cloudnsru up 2015-11-26 23:50:14 +03:00
docs knowledge base files and docs 2015-12-23 02:31:01 +03:00
extra up 2016-01-03 07:05:13 +03:00
kb rebrending 2016-01-03 06:52:57 +03:00
ssl add container for ssl files 2015-12-04 00:43:46 +03:00
.gitignore up 2015-11-26 23:49:41 +03:00
.gitmodules up 2016-01-03 07:05:13 +03:00
app.py up 2015-11-26 23:49:41 +03:00
cli-admin-add.py up 2015-11-26 23:49:41 +03:00
cli-admin-ls.py up 2015-11-26 23:49:41 +03:00
cli-admin-passwd.py up 2015-11-26 23:49:41 +03:00
cli-database-init.py new statistics 2015-12-16 08:39:53 +03:00
cli-dc-add.py cli app for add new data center 2015-11-28 01:33:32 +03:00
cli-dc-ls.py up 2015-12-14 01:49:38 +03:00
cli-ip-add.py update cli 2015-12-04 22:53:12 +03:00
cli-server-add.py up 2015-12-14 01:49:38 +03:00
cli-server-ls.py init 2015-12-01 02:46:00 +03:00
cli-settings-init.py fix 2015-12-04 14:25:11 +03:00
README.md up 2016-01-03 07:05:13 +03:00
requirements.txt fix 2015-12-23 02:39:03 +03:00

using

To start client-side app

uwsgi --socket 0.0.0.0:8000 --protocol=http -w app:app

or

uwsgi --http 127.0.0.1:8080 -w app:app

python control.py

install

pip install peewee

pip install PyMySQL

rules statuses

0 - Неактивно 1 - Активно 2 - Процесс активации 3 - Процесс деактивации 4 - Создание... 5 - Удаление...

CRON

0 * * * * cd /var/lib/procdn/control;python cdn_billing.py

Keys in 'Settings' table

SMTP

SMTP_SERVER

SMTP_PORT

SMTP_USERNAME

SMTP_PASSWORD

SMTP_TIMEOUT

Payments

Robokassa

PAY_ROBOKASA_LOGIN

PAY_ROBOKASA_PASSWORD1

PAY_ROBOKASA_PASSWORD2

Paypal

TODO

API calls

/api/pricing

Require auth: no

/api/countries

Require auth: no

/api/rules

Require auth: yes

/api/rules/<rule_id>/details

Require auth: yes

/api/rules/<rule_id>/statistics

Require auth: yes