ngx_prod_config 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. upstream rungobackend {
  2. server 127.0.0.1:28889;
  3. keepalive 128;
  4. }
  5. server {
  6. listen 80;
  7. server_name ostateapi.hiwavo.com;
  8. access_log /home/www/fohow/statement_api/go/gopath/src/fohow-statement-api/logs/ngx_access.log main;
  9. error_log /home/www/fohow/statement_api/go/gopath/src/fohow-statement-api/logs/ngx_error.log;
  10. location /report/ {
  11. allow 8.129.187.89;
  12. allow 47.52.141.54;
  13. deny all;
  14. alias /home/www/fohow/statement_api/go/gopath/src/fohow-statement-api/logs/goaccess/html/;
  15. }
  16. location =/MP_verify_oA3QuVJuxLN0Z3D2.txt {
  17. root /home/www/fohow/statement_api;
  18. }
  19. location =/3mft7ivXXx.txt {
  20. root /home/www/fohow/statement_api;
  21. }
  22. location =/3lojqxxPvq.txt {
  23. root /home/www/fohow/statement_api;
  24. }
  25. location / {
  26. proxy_next_upstream off;
  27. proxy_set_header X-Real-IP $remote_addr;
  28. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  29. proxy_set_header Host $host;
  30. proxy_http_version 1.1;
  31. proxy_set_header Connection "";
  32. proxy_pass http://rungobackend;
  33. }
  34. location /ngx {
  35. stub_status on;
  36. }
  37. }