This commit is contained in:
Vyacheslav Anzhiganov 2016-01-03 07:05:13 +03:00
parent 3c41c549f1
commit c242f2348b
6 changed files with 92 additions and 3 deletions

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "kb/kb"]
path = kb/kb
url = http://github.com/apescale/kb

81
README.md Normal file
View file

@ -0,0 +1,81 @@
# 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

View file

@ -0,0 +1,11 @@
description "uWSGI server instance configured to serve PROCDN.RU"
start on runlevel [2345]
stop on runlevel [!2345]
setuid user
setgid www-data
env PATH=/var/lib/procdn.ru/env/procdnru_server/bin
chdir /var/lib/procdn.ru/server
exec uwsgi --ini uwsgi.ini