settings.test.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. const Path = require("path");
  2. module.exports = {
  3. // Options are passed to Sequelize.
  4. // See http://sequelizejs.com/documentation#usage-options for details
  5. mysql: {
  6. clsi: {
  7. database: "clsi",
  8. username: "clsi",
  9. password: null,
  10. dialect: "sqlite",
  11. storage: Path.resolve("db.sqlite")
  12. }
  13. },
  14. path: {
  15. compilesDir: Path.resolve(__dirname + "/../../../compiles"),
  16. clsiCacheDir: Path.resolve(__dirname + "/../../../cache"),
  17. //synctexBaseDir: (project_id) -> Path.join(@compilesDir, project_id)
  18. synctexBaseDir() { return "/compile"; },
  19. sandboxedCompilesHostDir: process.env['SANDBOXED_COMPILES_HOST_DIR']
  20. },
  21. clsi: {
  22. //strace: true
  23. //archive_logs: true
  24. commandRunner: "docker-runner-sharelatex",
  25. latexmkCommandPrefix: ["/usr/bin/time", "-v"], // on Linux
  26. docker: {
  27. image: process.env.TEXLIVE_IMAGE || "texlive-full:2017.1-opt",
  28. env: {
  29. PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2017/bin/x86_64-linux/",
  30. HOME: "/tmp"
  31. },
  32. modem: {
  33. socketPath: false
  34. },
  35. user: process.env.SIBLING_CONTAINER_USER ||"111"
  36. }
  37. },
  38. internal: {
  39. clsi: {
  40. port: 3013,
  41. load_port: 3044,
  42. host: "localhost"
  43. }
  44. },
  45. apis: {
  46. clsi: {
  47. url: "http://localhost:3013"
  48. }
  49. },
  50. smokeTest: false,
  51. project_cache_length_ms: 1000 * 60 * 60 * 24,
  52. parallelFileDownloads:1
  53. };