test_hsts.yml 919 B

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