ngx_test_config 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #upstream rungobackend {
  2. # server 127.0.0.1:28889;
  3. # keepalive 128;
  4. #}
  5. server {
  6. listen 8079;
  7. server_name tfohowapi.hiwavo.com;
  8. charset utf-8;
  9. access_log /home/rails/fohow/api/go/gopath/src/fohow.com/logs/ngx_access.log main;
  10. error_log /home/rails/fohow/api/go/gopath/src/fohow.com/logs/ngx_error.log;
  11. location /.well-known/pki-validation/ {
  12. alias /home/rails/fohow/api/go/gopath/src/fohow.com/static/tapi/;
  13. }
  14. location =/MP_verify_WKpffc3SRB4yjEzI.txt {
  15. root /home/rails/fohow/api/go/gopath/src/fohow.com/static/tapi/;
  16. #expires 30d;
  17. }
  18. location =/apple-app-site-association {
  19. root /home/rails/fohow/api/go/gopath/src/fohow.com/static/tapi/;
  20. #expires 30d;
  21. }
  22. location =/stcXSY70Qh.txt {
  23. root /home/rails/fohow/api/go/gopath/src/fohow.com/static/tapi/;
  24. #expires 30d;
  25. }
  26. location / {
  27. proxy_next_upstream off;
  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 Host $host;
  31. proxy_http_version 1.1;
  32. proxy_set_header Connection "";
  33. proxy_pass http://127.0.0.1:25565;
  34. }
  35. location /ngx {
  36. stub_status on;
  37. }
  38. }
  39. # HTTPS server
  40. server {
  41. listen 443 ssl;
  42. server_name tfohowapi.hiwavo.com;
  43. charset utf-8;
  44. #ssl on;
  45. ssl_certificate /home/rails/fohow/api/go/gopath/src/fohow.com/static/tapi/7899796_tfohowapi.hiwavo.com.pem;
  46. ssl_certificate_key /home/rails/fohow/api/go/gopath/src/fohow.com/static/tapi/7899796_tfohowapi.hiwavo.com.key;
  47. ssl_session_cache shared:SSL:1m;
  48. ssl_session_timeout 5m;
  49. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  50. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  51. ssl_prefer_server_ciphers on;
  52. location / {
  53. proxy_next_upstream off;
  54. proxy_set_header X-Real-IP $remote_addr;
  55. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  56. proxy_set_header Host $host;
  57. proxy_http_version 1.1;
  58. proxy_set_header Connection "";
  59. proxy_pass http://tfohowapi.hiwavo.com:8079;
  60. }
  61. }