mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-25 15:14:04 +08:00
a complete refactor
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports =
|
||||
available_language: ['zh_CN', 'en']
|
||||
default_timezone: 'Asia/Shanghai'
|
||||
|
||||
plugin:
|
||||
extends:
|
||||
available_plugins: []
|
||||
|
||||
billing:
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user