0.conf 659 B

12345678910111213141516171819202122232425262728
  1. server {
  2. listen 443 ssl http2;
  3. server_name chat.zhile.io;
  4. charset utf-8;
  5. ssl_certificate certs/chat.zhile.io.crt;
  6. ssl_certificate_key certs/chat.zhile.io.key;
  7. location / {
  8. proxy_http_version 1.1;
  9. proxy_pass http://127.0.0.1:8181/;
  10. proxy_set_header Connection "";
  11. proxy_set_header Host $http_host;
  12. proxy_set_header X-Forwarded-Proto $scheme;
  13. proxy_set_header X-Real-IP $remote_addr;
  14. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15. proxy_buffering off;
  16. proxy_cache off;
  17. send_timeout 600;
  18. proxy_connect_timeout 600;
  19. proxy_send_timeout 600;
  20. proxy_read_timeout 600;
  21. }
  22. }