ngx_prod_config 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. server {
  2. listen 80;
  3. server_name ofohowapi.hiwavo.com fohowapi.hiwavo.com;
  4. charset utf-8;
  5. access_log /home/www/fohow/api/go/gopath/src/fohow.com/logs/ngx_access.log main;
  6. error_log /home/www/fohow/api/go/gopath/src/fohow.com/logs/ngx_error.log;
  7. location /.well-known/pki-validation/ {
  8. alias /home/www/fohow/api/go/gopath/src/fohow.com/static/api/;
  9. }
  10. location =/MP_verify_lJe9c6nI4kLGLBt1.txt {
  11. root /home/www/fohow/api/go/gopath/src/fohow.com/static/api/;
  12. #expires 30d;
  13. }
  14. location =/apple-app-site-association {
  15. root /home/www/fohow/api/go/gopath/src/fohow.com/static/api/;
  16. #expires 30d;
  17. }
  18. location =/stcXSY70Qh.txt {
  19. root /home/www/fohow/api/go/gopath/src/fohow.com/static/api/;
  20. }
  21. location / {
  22. proxy_next_upstream off;
  23. proxy_set_header X-Real-IP $remote_addr;
  24. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  25. proxy_set_header Host $host;
  26. proxy_http_version 1.1;
  27. proxy_set_header Connection "";
  28. proxy_pass http://127.0.0.1:25565;
  29. }
  30. # location /ngx {
  31. # stub_status on;
  32. #}
  33. }
  34. # HTTPS server
  35. server {
  36. listen 443 ssl;
  37. server_name ofohowapi.hiwavo.com;
  38. charset utf-8;
  39. #ssl on;
  40. ssl_certificate /home/www/fohow/api/go/gopath/src/fohow.com/static/api/7966605_ofohowapi.hiwavo.com.pem;
  41. ssl_certificate_key /home/www/fohow/api/go/gopath/src/fohow.com/static/api/7966605_ofohowapi.hiwavo.com.key;
  42. ssl_session_cache shared:SSL:1m;
  43. ssl_session_timeout 5m;
  44. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  45. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  46. ssl_prefer_server_ciphers on;
  47. location / {
  48. proxy_next_upstream off;
  49. proxy_set_header X-Real-IP $remote_addr;
  50. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  51. proxy_set_header Host $host;
  52. proxy_http_version 1.1;
  53. proxy_set_header Connection "";
  54. proxy_pass http://ofohowapi.hiwavo.com;
  55. }
  56. }
  57. # HTTPS server
  58. server {
  59. listen 443 ssl;
  60. server_name fohowapi.hiwavo.com;
  61. charset utf-8;
  62. #ssl on;
  63. ssl_certificate /home/www/fohow/api/go/gopath/src/fohow.com/static/api/7667666_fohowapi.hiwavo.com.pem;
  64. ssl_certificate_key /home/www/fohow/api/go/gopath/src/fohow.com/static/api/7667666_fohowapi.hiwavo.com.key;
  65. ssl_session_cache shared:SSL:1m;
  66. ssl_session_timeout 5m;
  67. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  68. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  69. ssl_prefer_server_ciphers on;
  70. location / {
  71. proxy_next_upstream off;
  72. proxy_set_header X-Real-IP $remote_addr;
  73. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  74. proxy_set_header Host $host;
  75. proxy_http_version 1.1;
  76. proxy_set_header Connection "";
  77. proxy_pass http://fohowapi.hiwavo.com;
  78. }
  79. }