mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-06-18 09:54:30 +08:00
nginx plugin
This commit is contained in:
12
plugin/nginx/action.coffee
Normal file
12
plugin/nginx/action.coffee
Normal file
@@ -0,0 +1,12 @@
|
||||
module.exports =
|
||||
create_website:
|
||||
mode: 'custom'
|
||||
callback: ->
|
||||
|
||||
update_website:
|
||||
mode: 'custom'
|
||||
callback: ->
|
||||
|
||||
delete_website:
|
||||
mode: 'custom'
|
||||
callback: ->
|
||||
26
plugin/nginx/index.coffee
Normal file
26
plugin/nginx/index.coffee
Normal file
@@ -0,0 +1,26 @@
|
||||
action = require './action'
|
||||
service = require './service'
|
||||
monitor = require './monitor'
|
||||
|
||||
module.exports =
|
||||
name: 'ssh'
|
||||
type: 'service'
|
||||
version: '0.1.0'
|
||||
|
||||
action: action
|
||||
service: service
|
||||
monitor: monitor
|
||||
|
||||
panel_widget:
|
||||
content: action.widget
|
||||
|
||||
static: './static'
|
||||
|
||||
inject:
|
||||
script: [
|
||||
'panel'
|
||||
]
|
||||
|
||||
resources: [
|
||||
'transfer', 'cpu', 'diskio'
|
||||
]
|
||||
0
plugin/nginx/monitor.coffee
Normal file
0
plugin/nginx/monitor.coffee
Normal file
6
plugin/nginx/service.coffee
Normal file
6
plugin/nginx/service.coffee
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports =
|
||||
enable: ->
|
||||
|
||||
pause: ->
|
||||
|
||||
delete: ->
|
||||
0
plugin/nginx/static/panel.coffee
Normal file
0
plugin/nginx/static/panel.coffee
Normal file
@@ -14,13 +14,6 @@ module.exports =
|
||||
panel_widget:
|
||||
content: action.widget
|
||||
|
||||
static: './static'
|
||||
|
||||
inject:
|
||||
script: [
|
||||
'panel'
|
||||
]
|
||||
|
||||
resources: [
|
||||
'storage', 'transfer', 'cpu', 'memory', 'diskio'
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user