Skip to content

Commit a26db48

Browse files
authored
allow exec and files access for AppAPI for ExApps containers (#41)
Signed-off-by: Oleksander Piskun <[email protected]>
1 parent 6299a29 commit a26db48

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

haproxy.cfg.template

+6-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ frontend docker_engine
5050
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/((start)|(stop)) } METH_POST
5151
# container rm: DELETE containers/%s
5252
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+ } METH_DELETE
53-
53+
# container update/exec: POST containers/%s/update containers/%s/exec
54+
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/((update)|(exec)) } METH_POST
55+
# container put: PUT containers/%s/archive
56+
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/archive } METH_PUT
57+
# run exec instance: POST exec/%s
58+
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/exec/[a-zA-Z0-9_.-]+/start } METH_POST
5459

5560
# container create: POST containers/create?name=%s
5661
# ACL to restrict container name to nc_app_[a-zA-Z0-9_.-]+

0 commit comments

Comments
 (0)