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.

40 lines
948 B

  1. worker_processes 1;
  2. pid /tmp/nginx.pid;
  3. daemon off;
  4. master_process off;
  5. error_log stderr debug_core;
  6. events {
  7. debug_connection <YOUR IPv4>;
  8. debug_connection <YOUR IPV6>;
  9. worker_connections 1024;
  10. }
  11. http {
  12. default_type application/octet-stream;
  13. client_body_temp_path /tmp/body 1;
  14. access_log /tmp/nginx_access.log;
  15. server {
  16. # listen 8082 ssl;
  17. # proxy protocol configuration for nginx 1.4.x:
  18. listen 8082 accept_proxy_protocol=on;
  19. # same with spdy enabled:
  20. # listen 8082 spdy ssl accept_proxy_protocol=on;
  21. listen [::]:8082 ipv6only=on;
  22. ssl_certificate /your/certificate;
  23. ssl_certificate_key /your/key;
  24. server_name localhost;
  25. # proxy protocol configuration for nginx 1.2.x:
  26. # accept_proxy_protocol on;
  27. location / {
  28. proxy_pass http://127.0.0.1:8084;
  29. proxy_set_header X-Real-IP $remote_addr;
  30. proxy_connect_timeout 10s;
  31. proxy_read_timeout 10s;
  32. send_proxy_protocol on;
  33. }
  34. }
  35. }