nginx.conf 361 B

123456789101112131415161718
  1. #worker_processes 1;
  2. pid /tmp/nginx.pid;
  3. error_log /dev/null crit;
  4. #error_log /tmp/test.log error;
  5. events {
  6. worker_connections 16384;
  7. }
  8. http {
  9. access_log off;
  10. lua_package_path 'CWD/openresty/?.lua;;';
  11. server {
  12. listen 8080;
  13. location / {
  14. content_by_lua 'require("app").handler(ngx)';
  15. }
  16. }
  17. }