ERL in corp app for fortage
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.
 
 
 
 
 
 

70 lines
2.6 KiB

  1. %% vim: ts=4 sw=4 et ft=erlang
  2. [
  3. {simple_bridge, [
  4. {handler, nitrogen},
  5. %% the name of the simple_bridge handler module, which should not
  6. %% change unless you're doing something custom to set up the context
  7. %% and simple_bridge, and also to interact with the request in a
  8. %% non-standard way. Generally speaking, it's not recommended to change
  9. %% this unless you really know what you are doing.
  10. {backend, yaws},
  11. %% cowboy | inets | mochiweb | webmachine | yaws
  12. {address, "0.0.0.0"},
  13. %% IP address to bind, either in tuple format or string
  14. {port, 8000},
  15. %% Port to bind
  16. {document_root, "./site/static"},
  17. %% The path on the local machine to handle static files
  18. {static_paths, ["js/", "css/", "images/", "nitrogen/", "favicon.ico"]},
  19. %% The list of paths to be automatically translated to static paths by simple_bridge
  20. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  21. %% FILE UPLOAD SETTINGS
  22. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  23. {max_post_size, 10},
  24. %% No multipart request greater than above will be accepted. Units are
  25. %% MB
  26. {max_file_size, 10},
  27. %% No single uploaded file will be accepted greater than the above.
  28. %% Units are MB.
  29. {max_file_in_memory_size, 0},
  30. %% If a file is less than the above, then instead of writing the file
  31. %% to disk, it'll be retained in memory and can be retrieved by
  32. %% sb_uploaded_file:data/1. See the README for more info.
  33. {scratch_dir, "./scratch"}
  34. %% This is the location of the temp directory where uploaded files will
  35. %% be placed.
  36. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  37. %% yaws-SPECIFIC DISPATCH TABLES:
  38. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  39. %% {webmachine_dispatch, DispatchTable},
  40. %% Webmachine dispatch table override (ignores static_paths above)
  41. %% {webmachine_dispatch_function, {Module, Function}}
  42. %% A Module:Function() that when evaluated will return a dispatch table
  43. %% for Webmachine, again ignores the static_paths above
  44. %% {cowboy_dispatch, DispatchTable}
  45. %% Cowboy dispatch table override (ignores static_paths)
  46. %% {cowboy_dispatch_function, {Module, Function}}
  47. %% A Module:Function() that when evaluated will return a dispatch tavle
  48. %% for Cowboy, again ignoring the static_paths above
  49. ]}
  50. ].