dmarcparser.conf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. server {
  2. ssl_certificate /etc/ssl/mail/cert.pem;
  3. ssl_certificate_key /etc/ssl/mail/key.pem;
  4. ssl_protocols TLSv1.2 TLSv1.3;
  5. ssl_prefer_server_ciphers on;
  6. ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305;
  7. ssl_ecdh_curve X25519:X448:secp384r1:secp256k1;
  8. ssl_session_cache shared:SSL:50m;
  9. ssl_session_timeout 1d;
  10. ssl_session_tickets off;
  11. index index.php index.html;
  12. client_max_body_size 0;
  13. root /web;
  14. include /etc/nginx/conf.d/listen_plain.active;
  15. include /etc/nginx/conf.d/listen_ssl.active;
  16. server_name dmarcparse.derlinkman.de;
  17. server_tokens off;
  18. location ^~ /.well-known/acme-challenge/ {
  19. allow all;
  20. default_type "text/plain";
  21. }
  22. if ($scheme = http) {
  23. return 301 https://$host$request_uri;
  24. }
  25. location / {
  26. proxy_pass http://dmarcparser:8080/;
  27. proxy_set_header Host $http_host;
  28. proxy_set_header X-Real-IP $remote_addr;
  29. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  30. proxy_set_header X-Forwarded-Proto $scheme;
  31. client_max_body_size 0;
  32. }
  33. }