test_vhost-empty-string.yml 875 B

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