Skip to content

Commit

Permalink
Update haproxy.cfg
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <zoey@z0ey.de>
  • Loading branch information
Zoey2936 authored Mar 24, 2024
1 parent 5c2d918 commit ced69c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ frontend http

frontend https
mode http
bind abns@haproxy-https accept-proxy ssl crt /etc/cert.pem alpn h3,h2,http/1.1
bind abns@haproxy-https accept-proxy ssl crt /tmp/cert.pem alpn h3,h2,http/1.1
http-request deny unless METH_GET || { env(POST) -m bool }
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/((start)|(stop)|(kill)|(restart)) } { env(ALLOW_POWER) -m bool }
http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/restart } { env(ALLOW_RESTART) -m bool }
Expand Down

0 comments on commit ced69c9

Please sign in to comment.