mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 22:46:55 +00:00
allowed read/write/exec of files for AppAPI for ExApps containers
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
This commit is contained in:
parent
f7de6f6704
commit
f1e7868368
1 changed files with 6 additions and 1 deletions
|
|
@ -22,7 +22,12 @@ frontend http
|
||||||
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/((start)|(stop)) } METH_POST
|
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/((start)|(stop)) } METH_POST
|
||||||
# container rm: DELETE containers/%s
|
# container rm: DELETE containers/%s
|
||||||
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+ } METH_DELETE
|
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+ } METH_DELETE
|
||||||
|
# container update/exec: POST containers/%s/update containers/%s/exec
|
||||||
|
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/((update)|(exec)) } METH_POST
|
||||||
|
# container put: PUT containers/%s/archive
|
||||||
|
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/archive } METH_PUT
|
||||||
|
# run exec instance: POST exec/%s
|
||||||
|
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/exec/[a-zA-Z0-9_.-]+/start } METH_POST
|
||||||
|
|
||||||
# container create: POST containers/create?name=%s
|
# container create: POST containers/create?name=%s
|
||||||
# ACL to restrict container name to nc_app_[a-zA-Z0-9_.-]+
|
# ACL to restrict container name to nc_app_[a-zA-Z0-9_.-]+
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue