Tarantool nginx upstream module
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nginx.dev.dyn.conf 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. daemon off;
  2. master_process off;
  3. #worker_processes 4;
  4. worker_rlimit_core 500M;
  5. pid logs/nginx.pid;
  6. error_log logs/notice.log notice;
  7. error_log logs/info.log info;
  8. error_log logs/crit.log crit;
  9. error_log logs/debug.log debug;
  10. error_log stderr;
  11. load_module modules/ngx_http_tnt_module.so
  12. events {}
  13. http {
  14. autoindex off;
  15. access_log off;
  16. include mime.types;
  17. default_type application/octet-stream;
  18. client_body_buffer_size 10K;
  19. client_header_buffer_size 1k;
  20. client_max_body_size 8m;
  21. large_client_header_buffers 2 1k;
  22. client_body_timeout 12;
  23. client_header_timeout 12;
  24. keepalive_timeout 15;
  25. send_timeout 10;
  26. upstream tnt {
  27. server 127.0.0.1:9999 max_fails=1 fail_timeout=30s;
  28. keepalive 1;
  29. }
  30. server {
  31. listen 8081 default;
  32. server_name tnt_test;
  33. location = /tnt {
  34. tnt_pass tnt;
  35. }
  36. location /echo_2 {
  37. tnt_http_rest_methods get post put;
  38. tnt_pass_http_request on;
  39. tnt_pass tnt;
  40. }
  41. location /preset_method {
  42. tnt_method 'echo_2';
  43. tnt_pass tnt;
  44. }
  45. location = /post_pass_http_request {
  46. tnt_pass_http_request on;
  47. tnt_pass tnt;
  48. }
  49. location /post_preset_method {
  50. tnt_method 'echo_2';
  51. tnt_pass_http_request on;
  52. tnt_pass tnt;
  53. }
  54. location = /echo_2/overflow_rest_api {
  55. tnt_pass_http_request_buffer_size 30;
  56. tnt_pass tnt;
  57. tnt_pass_http_request on;
  58. }
  59. location /overflow_post_pass_http_request {
  60. tnt_pass_http_request_buffer_size 30;
  61. tnt_method 'echo_2';
  62. tnt_pass_http_request on;
  63. tnt_pass tnt;
  64. }
  65. location /rest_api_get {
  66. tnt_http_rest_methods get;
  67. tnt_pass tnt;
  68. tnt_pass_http_request on;
  69. }
  70. }
  71. }