config.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. | Settings for olgitbridge for you to change.
  3. */
  4. const config = module.exports = { forward: { }, ssl: { } };
  5. // overleaf server
  6. config.olServer = 'http://localhost';
  7. // used if all the working directories in one place
  8. // must be absolute path ending with '/'
  9. config.baseDir = '/var/olgitbridge/';
  10. // blueprint of the overleaf version (only differences to git to be uploaded again)
  11. config.bluesDir = config.baseDir + 'blues/';
  12. // stores hashes of the downloaded zips to optimize cases
  13. // when no changes happened in overleaf
  14. config.hashDir = config.baseDir + 'hash/';
  15. // place of the git clones
  16. config.padsDir = config.baseDir + 'pads/';
  17. // place of the git repositories
  18. config.reposDir = config.baseDir + 'repos/';
  19. // milliseconds to not downsync a project again
  20. config.downSyncTimeout = 30000;
  21. // ssl settings
  22. config.ssl.enable = false;
  23. config.ssl.key = 'XXX';
  24. config.ssl.cert = 'XXX';
  25. // change to 443 for https
  26. config.port = 5000;
  27. // enable to forward requests to the main port.
  28. config.forward.enable = false;
  29. // set this to the URL of the server
  30. config.forward.target = 'https://HOST';
  31. config.forward.port = 80;