mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-09 08:15:13 +03:00
actions: add a generic hook to define external commands and HTTP URL
We can only define a single hook now and it can be an HTTP notification or an external command, not both
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
"upload_mode": 0,
|
||||
"actions": {
|
||||
"execute_on": [],
|
||||
"command": "",
|
||||
"http_notification_url": ""
|
||||
"hook": ""
|
||||
},
|
||||
"host_keys": [],
|
||||
"kex_algorithms": [],
|
||||
@@ -46,8 +45,7 @@
|
||||
"users_base_dir": "",
|
||||
"actions": {
|
||||
"execute_on": [],
|
||||
"command": "",
|
||||
"http_notification_url": ""
|
||||
"hook": ""
|
||||
},
|
||||
"external_auth_hook": "",
|
||||
"external_auth_scope": 0,
|
||||
|
||||
Reference in New Issue
Block a user