summaryrefslogtreecommitdiff
path: root/spec/fixtures/haproxy.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures/haproxy.cfg')
-rw-r--r--spec/fixtures/haproxy.cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/fixtures/haproxy.cfg b/spec/fixtures/haproxy.cfg
index b0ab370..4a5b982 100644
--- a/spec/fixtures/haproxy.cfg
+++ b/spec/fixtures/haproxy.cfg
@@ -20,6 +20,7 @@ defaults
frontend www-https
bind *:443 ssl crt wildcard.test.pem
+ acl composer-backend ssl_fc_sni composer.test
acl goproxy-backend ssl_fc_sni goproxy.test
acl maven-backend ssl_fc_sni maven.test
acl npm-backend ssl_fc_sni npm.test
@@ -28,12 +29,14 @@ frontend www-https
acl rubygems-backend ssl_fc_sni rubygems.test
http-request replace-header Host .* api.nuget.org if nuget-backend
+ http-request replace-header Host .* packagist.org if composer-backend
http-request replace-header Host .* proxy.golang.org if goproxy-backend
http-request replace-header Host .* pypi.org if pypi-backend
http-request replace-header Host .* registry.npmjs.org if npm-backend
http-request replace-header Host .* repo1.maven.org if maven-backend
http-request replace-header Host .* rubygems.org if rubygems-backend
+ use_backend composer-backend if composer-backend
use_backend goproxy-backend if goproxy-backend
use_backend maven-backend if maven-backend
use_backend npm-backend if npm-backend
@@ -41,6 +44,9 @@ frontend www-https
use_backend pypi-backend if pypi-backend
use_backend rubygems-backend if rubygems-backend
+backend composer-backend
+ server www1 packagist.org:443 ssl verify none
+
backend goproxy-backend
server www1 proxy.golang.org:443 ssl verify none