test_vhost-empty-string.yml 889 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. version: "2"
  2. services:
  3. sut:
  4. image: nginxproxy/nginx-proxy:test
  5. volumes:
  6. - /var/run/docker.sock:/tmp/docker.sock:ro
  7. web1:
  8. image: web
  9. expose:
  10. - "81"
  11. environment:
  12. WEB_PORTS: "81"
  13. # The space is intentional (should be trimmed).
  14. VIRTUAL_HOST: " "
  15. web2:
  16. image: web
  17. expose:
  18. - "82"
  19. environment:
  20. WEB_PORTS: "82"
  21. # The space is intentional (should be trimmed).
  22. VIRTUAL_HOST: "web2.nginx-proxy.test ,"
  23. web3:
  24. image: web
  25. expose:
  26. - "83"
  27. environment:
  28. WEB_PORTS: "83"
  29. # The space is intentional (should be trimmed).
  30. VIRTUAL_HOST: " ,web3.nginx-proxy.test"
  31. web4:
  32. image: web
  33. expose:
  34. - "84"
  35. environment:
  36. WEB_PORTS: "84"
  37. # The spaces are intentional (should be trimmed).
  38. VIRTUAL_HOST: "web4a.nginx-proxy.test, , web4b.nginx-proxy.test"