test_hsts.yml 719 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. sut:
  34. image: nginxproxy/nginx-proxy:test
  35. volumes:
  36. - /var/run/docker.sock:/tmp/docker.sock:ro
  37. - ./certs:/etc/nginx/certs:ro