nginx.conf 946 B

1234567891011121314151617181920212223
  1. server {
  2. listen 443 http2 ssl;
  3. listen [::]:443 http2 ssl;
  4. index index.html;
  5. root /var/www/html;
  6. ssl_certificate /path/to/example.cer;
  7. ssl_certificate_key /path/to/example.cer;
  8. ssl_protocols TLSv1.2 TLSv1.3;
  9. ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
  10. # splithttp produces very noisy access logs, as it sends many HTTP
  11. # requests and uses querystrings for padding. It is recommended to turn
  12. # them off after setup, or use custom log formats to limit the amount
  13. # of information.
  14. # access_log off;
  15. location /split {
  16. proxy_pass http://[::1]:1234;
  17. proxy_http_version 1.1;
  18. proxy_redirect off;
  19. }
  20. }