a complete refactor

This commit is contained in:
jysperm
2015-03-01 09:29:08 +08:00
parent 005a0f644b
commit 2f9386f033
123 changed files with 615 additions and 2614 deletions

View File

@@ -13,7 +13,7 @@ module.exports =
available_language: ['zh_CN', 'en']
default_timezone: 'Asia/Shanghai'
plugin:
extends:
available_plugins: []
billing:

View File

@@ -1,101 +0,0 @@
module.exports =
skip: true
web:
t_name: 'plugins.rpvhost.'
url: 'http://rp.rpvhost.net'
listen: '/home/rpadmin/rootpanel.sock'
repo: 'jysperm/RootPanel'
google_analytics_id: ''
account:
cookie_time: 30 * 24 * 3600 * 1000
i18n:
available_language: ['zh_CN', 'en']
default_language: 'zh_CN'
default_timezone: 'Asia/Shanghai'
plugin:
available_plugins: [
'bitcoin', 'wiki', 'rpvhost','linux', 'supervisor', 'ssh'
]
billing:
currency: 'CNY'
force_freeze:
when_balance_below: 0
when_arrears_above: 0
billing_cycle: 10 * 60 * 1000
plans:
all:
t_name: 'plugins.rpvhost.plans.all.name'
t_description: 'plugins.rpvhost.plans.all.description'
available_components:
supervisor: {}
linux:
limit: 1
default: (account) ->
return username: account.username
ssh:
limit:1
default: (account) ->
return username: account.username
resource_limit:
cpu: 144
storage: 520
transfer: 39
memory: 27
billing_trigger:
time:
interval: 24 * 3600 * 1000
price: 10 / 30
prepaid: true
ssh:
id_key: '/home/rpadmin/.ssh/id_rsa'
nodes:
master:
host: 'localhost'
master: true
available_components: []
mongodb:
user: 'rpadmin'
password: 'password'
host: 'localhost'
name: 'RootPanel'
test: 'RootPanel-test'
redis:
host: '127.0.0.1'
port: 6379
password: 'password'
prefix: 'RP'
email:
send_from: 'robot@rpvhost.net'
account:
service: 'Postmark'
auth:
user: 'postmark-api-token'
pass: 'postmark-api-token'
plugins:
bitcoin:
coinbase_api_key: 'coinbase-simple-api-key'
rpvhost:
index_page: true
taobao_item_id: '38370649858'
linux:
monitor_cycle: 30 * 1000