在DOCKER中用HAPROXY的PushCacheFilter不会推动任何东西

我试图用haproxy使用jetty的serverpush特性。 我使用PushCacheFilter和haproxy在两个docker容器中设置了Jetty 9.4.7。

我认为docker试图推动的东西,但没有PUSH_PROMISE帧交付给客户端(我已经检查了铬的networking内部选项卡)。

我不确定这是否与docker问题(也许与h2c)!

这里是我的haporxy-config(来自docker的文档):

global tune.ssl.default-dh-param 1024 defaults timeout connect 10000ms timeout client 60000ms timeout server 60000ms frontend fe_http mode http bind *:80 # Redirect to https redirect scheme https code 301 frontend fe_https mode tcp bind *:443 ssl no-sslv3 crt /usr/local/etc/domain.pem ciphers TLSv1.2 alpn h2,http/1.1 default_backend be_http backend be_http mode tcp server domain basexhttp:8984 

这里是docker的开始:

 [main] INFO org.eclipse.jetty.util.log - Logging initialized @377ms to org.eclipse.jetty.util.log.Slf4jLog BaseX 9.0 beta 5cc42ae [HTTP Server] [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.7.v20170914 [main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet [main] INFO org.eclipse.jetty.server.session - DefaultSessionIdManager workerName=node0 [main] INFO org.eclipse.jetty.server.session - No SessionScavenger set, using defaults [main] INFO org.eclipse.jetty.server.session - Scavenging every 600000ms [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started oejwWebAppContext@7dc222ae{/,file:///opt/basex/webapp/,AVAILABLE}{/opt/basex/webapp} [main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@3439f68d{h2c,[h2c, http/1.1]}{0.0.0.0:8984} [main] INFO org.eclipse.jetty.server.Server - Started @784ms HTTP Server was started (port: 8984). HTTP Stop Server was started (port: 8985). 

这里是简单的docker-compose.yml

 version: '3.3' services: basexhttp: container_name: pushcachefilter-basexhttp build: pushcachefilter-basexhttp/ image: "pushcachefilter/basexhttp" volumes: - "${HOME}/data:/opt/basex/data" - "${HOME}/base/app-web/webapp:/opt/basex/webapp" networks: - web haproxy: container_name: haproxy_container build: ha-proxy/ image: "my_haproxy" depends_on: - basexhttp ports: - 80:80 - 443:443 networks: - web networks: web: driver: overlay 

请注意,我必须使用我自己的jetty.xmlconfigurationdocker – 文档中显示的方式不适用于我。

Thx提前

博多