ngx_prod_config 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 =/stcXSY70Qh.txt {
  15. root /home/www/fohow/api/go/gopath/src/fohow.com/static/api/;
  16. }
  17. location / {
  18. proxy_next_upstream off;
  19. proxy_set_header X-Real-IP $remote_addr;
  20. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  21. proxy_set_header Host $host;
  22. proxy_http_version 1.1;
  23. proxy_set_header Connection "";
  24. proxy_pass http://127.0.0.1:25565;
  25. }
  26. # location /ngx {
  27. # stub_status on;
  28. #}
  29. }
  30. # HTTPS server
  31. server {
  32. listen 443 ssl;
  33. server_name ofohowapi.hiwavo.com;
  34. charset utf-8;
  35. #ssl on;
  36. ssl_certificate /home/www/fohow/api/go/gopath/src/fohow.com/static/api/5754773_ofohowapi.hiwavo.com.pem;
  37. ssl_certificate_key /home/www/fohow/api/go/gopath/src/fohow.com/static/api/5754773_ofohowapi.hiwavo.com.key;
  38. ssl_session_cache shared:SSL:1m;
  39. ssl_session_timeout 5m;
  40. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  41. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  42. ssl_prefer_server_ciphers on;
  43. location / {
  44. proxy_next_upstream off;
  45. proxy_set_header X-Real-IP $remote_addr;
  46. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  47. proxy_set_header Host $host;
  48. proxy_http_version 1.1;
  49. proxy_set_header Connection "";
  50. proxy_pass http://ofohowapi.hiwavo.com;
  51. }
  52. }
  53. # HTTPS server
  54. server {
  55. listen 443 ssl;
  56. server_name fohowapi.hiwavo.com;
  57. charset utf-8;
  58. #ssl on;
  59. ssl_certificate /home/www/fohow/api/go/gopath/src/fohow.com/static/api/5539942_fohowapi.hiwavo.com.pem;
  60. ssl_certificate_key /home/www/fohow/api/go/gopath/src/fohow.com/static/api/5539942_fohowapi.hiwavo.com.key;
  61. ssl_session_cache shared:SSL:1m;
  62. ssl_session_timeout 5m;
  63. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  64. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  65. ssl_prefer_server_ciphers on;
  66. location / {
  67. proxy_next_upstream off;
  68. proxy_set_header X-Real-IP $remote_addr;
  69. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  70. proxy_set_header Host $host;
  71. proxy_http_version 1.1;
  72. proxy_set_header Connection "";
  73. proxy_pass http://fohowapi.hiwavo.com;
  74. }
  75. }