up
This commit is contained in:
parent
3c41c549f1
commit
c242f2348b
6 changed files with 92 additions and 3 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule "kb/kb"]
|
|
||||||
path = kb/kb
|
|
||||||
url = http://github.com/apescale/kb
|
|
81
README.md
Normal file
81
README.md
Normal 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
|
BIN
app/static/images/promo/bg1.jpg
Normal file
BIN
app/static/images/promo/bg1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 60 KiB |
BIN
app/static/images/promo/bg2.png
Normal file
BIN
app/static/images/promo/bg2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
BIN
app/static/images/promo/clouds1.jpg
Normal file
BIN
app/static/images/promo/clouds1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 278 KiB |
11
extra/procdnru_server.service
Normal file
11
extra/procdnru_server.service
Normal 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
|
Loading…
Add table
Reference in a new issue