coordination_http_proxy.conf 742 B

1234567891011121314151617181920212223242526
  1. server {
  2. listen 9300;
  3. server_name coordination_http_proxy;
  4. #charset koi8-r;
  5. access_log logs/coordination.http.access.log main;
  6. location / {
  7. access_by_lua_file 'lua/router.lua';
  8. proxy_set_header X-Real-IP $remote_addr;
  9. proxy_set_header X-Real-PORT $remote_port;
  10. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11. proxy_set_header X-Forwarded-Proto $scheme;
  12. proxy_set_header X-Forwarded-Port $server_port;
  13. proxy_redirect off;
  14. proxy_set_header Connection "";
  15. proxy_next_upstream off;
  16. proxy_pass http://http_cluster;
  17. }
  18. error_page 500 502 503 504 /50x.html;
  19. location = /50x.html {
  20. root html;
  21. }
  22. }