Skip to content

Commit

Permalink
Update haproxy.cfg for version 2.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcOverIP authored Oct 31, 2023
1 parent 417793d commit fba8111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example-data-and-configs/HAProxy/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ frontend www-https
http-response set-header X-Content-Type-Options nosniff
http-response set-header Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
bind :::443 v4v6 ssl crt /etc/letsencrypt/live/haproxy.pem
reqadd X-Forwarded-Proto:\ https
http-request add-header X-Forwarded-Proto https
# modify the paths below to match your c2 channel
acl path_stage1 path -m beg /s1
acl path_cs path -m beg /cs
Expand All @@ -63,7 +63,7 @@ frontend www-http
http-response set-header X-Content-Type-Options nosniff
http-response set-header Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
bind :::80 v4v6
reqadd X-Forwarded-Proto:\ http
http-request add-header X-Forwarded-Proto http
# modify the paths below to match your c2 channel
acl path_stage1 path -m beg /s1
acl path_cs path -m beg /cs
Expand Down

0 comments on commit fba8111

Please sign in to comment.