test_hsts.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. version: "2"
  2. services:
  3. web1:
  4. image: web
  5. expose:
  6. - "81"
  7. environment:
  8. WEB_PORTS: "81"
  9. VIRTUAL_HOST: "web1.nginx-proxy.tld"
  10. web2:
  11. image: web
  12. expose:
  13. - "81"
  14. environment:
  15. WEB_PORTS: "81"
  16. VIRTUAL_HOST: "web2.nginx-proxy.tld"
  17. HSTS: "off"
  18. web3:
  19. image: web
  20. expose:
  21. - "81"
  22. environment:
  23. WEB_PORTS: "81"
  24. VIRTUAL_HOST: "web3.nginx-proxy.tld"
  25. HSTS: "max-age=86400; includeSubDomains; preload"
  26. web4:
  27. image: web
  28. expose:
  29. - "81"
  30. environment:
  31. WEB_PORTS: "81"
  32. VIRTUAL_HOST: "web4.nginx-proxy.tld"
  33. HSTS: "off"
  34. HTTPS_METHOD: "noredirect"
  35. web5:
  36. image: web
  37. expose:
  38. - "81"
  39. environment:
  40. WEB_PORTS: "81"
  41. VIRTUAL_HOST: http3-vhost-enabled.nginx-proxy.tld
  42. labels:
  43. com.github.nginx-proxy.nginx-proxy.http3.enable: "true"
  44. sut:
  45. image: nginxproxy/nginx-proxy:test
  46. volumes:
  47. - /var/run/docker.sock:/tmp/docker.sock:ro
  48. - ./certs:/etc/nginx/certs:ro