a sandboxed Lua backend for FastCGI
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

37 lines
981 B

  1. return {
  2. -- IP/Port to listen on
  3. -- Default: "127.0.0.1:9222"
  4. listen = "127.0.0.1:9222",
  5. -- How many connections should be back-logged by each thread
  6. -- Default: 100
  7. backlog = 100,
  8. -- Number of threads to spin off. Usually one per CPU
  9. -- (plus hardware threads) is a good idea
  10. -- Default: 4
  11. threads = 1,
  12. -- Indicates if states should be sandboxed (i.e. Denied access to
  13. -- file system resources or system-level functions)
  14. -- Default: true
  15. sandbox = true,
  16. -- Maximum amount of memory a state may consume or 0 for no limit
  17. -- Default: 65536
  18. mem_max = 65536,
  19. -- Maximum amount of CPU time, in both seconds and picoseconds for each
  20. -- execution. If cpu_sec and cpu_usec are 0, there is no limit
  21. -- Default: 5000000
  22. cpu_usec = 500000,
  23. -- Default: 0
  24. cpu_sec = 0,
  25. -- Limit page output to x bytes or 0 for unlimited
  26. -- Default: 65536
  27. output_max = 65536,
  28. -- Default content type returned in header
  29. content_type = "text/html; charset=iso-8859-1"
  30. }