A simple web application to send CSP violation reports to an email address
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
655B

  1. version: '2.2'
  2. services:
  3. csp-handler:
  4. build: .
  5. image: csp-handler
  6. ports:
  7. - 127.0.0.1:8080:8080
  8. environment:
  9. # Email Address to use to send mails
  10. - SENDER_EMAIL=csp@example.com
  11. # Email address to which the report mails are being sent
  12. - RECEIVER_EMAIL=alice@example.com
  13. # SMTP server address in following format: smtp.example.tld:465
  14. - SMTP_ADDRESS=mail.example.com:465
  15. # SMTP username
  16. - SMTP_USERNAME=me@example.com
  17. # SMTP Password
  18. - SMTP_PASSWORD=P4ssw0rd
  19. # Limit the requests a single IP address can make in an hour
  20. - RATE_LIMIT=1
  21. restart: always