mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-25 23:24:05 +08:00
plans and nodes in config file
This commit is contained in:
@@ -32,19 +32,29 @@ module.exports =
|
||||
t_name: 'plans.sample.name'
|
||||
t_description: 'plans.sample.description'
|
||||
|
||||
billing_by_time:
|
||||
unit: 24 * 3600 * 1000
|
||||
price: 10 / 30
|
||||
available_components: {}
|
||||
resource_limit: {}
|
||||
|
||||
services: []
|
||||
resources: {}
|
||||
billing:
|
||||
time:
|
||||
interval: 24 * 3600 * 1000
|
||||
price: 10 / 30
|
||||
prepaid: true
|
||||
|
||||
test:
|
||||
t_name: 'plans.test.name'
|
||||
t_description: 'plans.test.description'
|
||||
|
||||
services: []
|
||||
resources: {}
|
||||
available_components: {}
|
||||
resource_limit: {}
|
||||
|
||||
billing: {}
|
||||
|
||||
nodes:
|
||||
master:
|
||||
ip: 'localhost'
|
||||
master: true
|
||||
available_components: []
|
||||
|
||||
mongodb:
|
||||
user: 'rpadmin'
|
||||
|
||||
@@ -32,18 +32,35 @@ module.exports =
|
||||
t_name: 'plugins.rpvhost.plans.all.name'
|
||||
t_description: 'plugins.rpvhost.plans.all.description'
|
||||
|
||||
billing_by_time:
|
||||
unit: 24 * 3600 * 1000
|
||||
price: 10 / 30
|
||||
available_components:
|
||||
supervisor: {}
|
||||
linux:
|
||||
limit: 1
|
||||
default: (account) ->
|
||||
return username: account.username
|
||||
ssh:
|
||||
limit:1
|
||||
default: (account) ->
|
||||
return username: account.username
|
||||
|
||||
services: ['supervisor', 'linux', 'ssh']
|
||||
|
||||
resources:
|
||||
resource_limit:
|
||||
cpu: 144
|
||||
storage: 520
|
||||
transfer: 39
|
||||
memory: 27
|
||||
|
||||
billing:
|
||||
time:
|
||||
interval: 24 * 3600 * 1000
|
||||
price: 10 / 30
|
||||
prepaid: true
|
||||
|
||||
nodes:
|
||||
master:
|
||||
ip: 'localhost'
|
||||
master: true
|
||||
available_components: []
|
||||
|
||||
mongodb:
|
||||
user: 'rpadmin'
|
||||
password: 'password'
|
||||
|
||||
@@ -32,7 +32,22 @@ module.exports =
|
||||
t_name: 'plugins.rpvhost.plans.shadowsocks.name'
|
||||
t_description: 'plugins.rpvhost.plans.shadowsocks.description'
|
||||
|
||||
services: ['shadowsocks']
|
||||
available_components:
|
||||
shadowsocks:
|
||||
limit: 1
|
||||
|
||||
resource_limit: {}
|
||||
|
||||
billing:
|
||||
'shadowsocks.traffic':
|
||||
bucket: 100 * 1000 * 1000
|
||||
price: 0.06
|
||||
|
||||
nodes:
|
||||
master:
|
||||
ip: 'localhost'
|
||||
master: true
|
||||
available_components: []
|
||||
|
||||
mongodb:
|
||||
user: 'rpadmin'
|
||||
|
||||
Reference in New Issue
Block a user