2
0

test_hsts.yml 1021 B

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