test_vhost-empty-string.yml 916 B

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