settings.defaults.coffee 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. Path = require('path')
  2. http = require('http')
  3. http.globalAgent.maxSockets = 300
  4. # Make time interval config easier.
  5. seconds = 1000
  6. minutes = 60 * seconds
  7. # These credentials are used for authenticating api requests
  8. # between services that may need to go over public channels
  9. httpAuthUser = "sharelatex"
  10. httpAuthPass = "password"
  11. httpAuthUsers = {}
  12. httpAuthUsers[httpAuthUser] = httpAuthPass
  13. sessionSecret = "secret-please-change"
  14. module.exports =
  15. # File storage
  16. # ------------
  17. #
  18. # ShareLaTeX stores binary files like images in S3.
  19. # Fill in your Amazon S3 credential below.
  20. s3:
  21. key: ""
  22. secret: ""
  23. bucketName : ""
  24. # Databases
  25. # ---------
  26. mongo:
  27. url : 'mongodb://127.0.0.1/sharelatex'
  28. redis:
  29. web:
  30. host: "localhost"
  31. port: "6379"
  32. password: ""
  33. api:
  34. host: "localhost"
  35. port: "6379"
  36. password: ""
  37. # Service locations
  38. # -----------------
  39. # Configure which ports to run each service on. Generally you
  40. # can leave these as they are unless you have some other services
  41. # running which conflict, or want to run the web process on port 80.
  42. internal:
  43. web:
  44. port: webPort = 3000
  45. documentupdater:
  46. port: docUpdaterPort = 3003
  47. # Tell each service where to find the other services. If everything
  48. # is running locally then this is easy, but they exist as separate config
  49. # options incase you want to run some services on remote hosts.
  50. apis:
  51. web:
  52. url: "http://localhost:#{webPort}"
  53. user: httpAuthUser
  54. pass: httpAuthPass
  55. documentupdater:
  56. url : "http://localhost:#{docUpdaterPort}"
  57. thirdPartyDataStore:
  58. url : "http://localhost:3002"
  59. emptyProjectFlushDelayMiliseconds: 5 * seconds
  60. tags:
  61. url :"http://localhost:3012"
  62. spelling:
  63. url : "http://localhost:3005"
  64. trackchanges:
  65. url : "http://localhost:3015"
  66. docstore:
  67. url : "http://localhost:3016"
  68. pubUrl: "http://localhost:3016"
  69. chat:
  70. url: "http://localhost:3010"
  71. internal_url: "http://localhost:3010"
  72. blog:
  73. port: 3008
  74. university:
  75. url: "http://localhost:3011"
  76. filestore:
  77. url: "http://localhost:3009"
  78. clsi:
  79. url: "http://localhost:3013"
  80. clsi_priority:
  81. url: "http://localhost:3013"
  82. templates:
  83. url: "http://localhost:3007"
  84. githubSync:
  85. url: "http://localhost:3022"
  86. recurly:
  87. privateKey: ""
  88. apiKey: ""
  89. subdomain: ""
  90. geoIpLookup:
  91. url: "http://localhost:8080/json"
  92. templates:
  93. user_id: process.env.TEMPLATES_USER_ID or "5395eb7aad1f29a88756c7f2"
  94. # The websocket layer of ShareLaTeX runs as separate service.
  95. # When running locally or in development, you can point the client to this
  96. # service directly. If you are running behind a reverse proxy (Nginx, etc)
  97. # then websocketsUrl should be the same as siteUrl, with your reverse
  98. # proxy responible for sending websocket traffic to the websocket service
  99. # rather than connecting directly.
  100. websocketsUrl: "http://localhost:3026"
  101. # Where your instance of ShareLaTeX can be found publically. Used in emails
  102. # that are sent out, generated links, etc.
  103. siteUrl : siteUrl = 'http://localhost:3000'
  104. # cookie domain
  105. # use full domain for cookies to only be accesabble from that domain,
  106. # replace subdomain with dot to have them accessable on all subdomains
  107. # cookieDomain: ".sharelatex.dev"
  108. cookieName:"sharelatex.sid"
  109. # Same, but with http auth credentials.
  110. httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'
  111. # Security
  112. # --------
  113. security:
  114. sessionSecret: sessionSecret
  115. httpAuthUsers: httpAuthUsers
  116. # Default features
  117. # ----------------
  118. #
  119. # You can select the features that are enabled by default for new
  120. # new users.
  121. defaultFeatures: defaultFeatures =
  122. collaborators: -1
  123. dropbox: true
  124. versioning: true
  125. compileTimeout: 60
  126. compileGroup: "standard"
  127. plans: plans = [{
  128. planCode: "personal"
  129. name: "Personal"
  130. price: 0
  131. features: defaultFeatures
  132. }]
  133. # i18n
  134. # ------
  135. #
  136. i18n:
  137. subdomainLang:
  138. www: {lngCode:"en", url: siteUrl}
  139. defaultLng: "en"
  140. # Spelling languages
  141. # ------------------
  142. #
  143. # You must have the corresponding aspell package installed to
  144. # be able to use a language.
  145. languages: [
  146. {name: "English", code: "en"},
  147. {name: "French", code: "fr"}
  148. ]
  149. # Email support
  150. # -------------
  151. #
  152. # ShareLaTeX uses nodemailer (http://www.nodemailer.com/) to send transactional emails.
  153. # To see the range of transport and options they support, see http://www.nodemailer.com/docs/transports
  154. #email:
  155. # fromAddress: ""
  156. # replyTo: ""
  157. # lifecycle: false
  158. ## Example transport and parameter settings for Amazon SES
  159. # transport: "SES"
  160. # parameters:
  161. # AWSAccessKeyID: ""
  162. # AWSSecretKey: ""
  163. # Third party services
  164. # --------------------
  165. #
  166. # ShareLaTeX's regular newsletter is managed by Markdown mail. Add your
  167. # credentials here to integrate with this.
  168. # markdownmail:
  169. # secret: ""
  170. # list_id: ""
  171. #
  172. # Fill in your unique token from various analytics services to enable
  173. # them.
  174. # analytics:
  175. # ga:
  176. # token: ""
  177. #
  178. # ShareLaTeX's help desk is provided by tenderapp.com
  179. # tenderUrl: ""
  180. #
  181. # Client-side error logging is provided by getsentry.com
  182. # sentry:
  183. # src: ""
  184. # publicDSN: ""
  185. #
  186. # src should be either a remote url like
  187. # //cdn.ravenjs.com/1.1.16/jquery,native/raven.min.js
  188. # or a local file in the js/libs directory.
  189. # The publicDSN is the token for the client-side getSentry service.
  190. # Production Settings
  191. # -------------------
  192. # Should javascript assets be served minified or not. Note that you will
  193. # need to run `grunt compile:minify` within the web-sharelatex directory
  194. # to generate these.
  195. useMinifiedJs: false
  196. # Should static assets be sent with a header to tell the browser to cache
  197. # them.
  198. cacheStaticAssets: false
  199. # If you are running ShareLaTeX over https, set this to true to send the
  200. # cookie with a secure flag (recommended).
  201. secureCookie: false
  202. # If you are running ShareLaTeX behind a proxy (like Apache, Nginx, etc)
  203. # then set this to true to allow it to correctly detect the forwarded IP
  204. # address and http/https protocol information.
  205. behindProxy: false
  206. # Internal configs
  207. # ----------------
  208. path:
  209. # If we ever need to write something to disk (e.g. incoming requests
  210. # that need processing but may be too big for memory, then write
  211. # them to disk here).
  212. dumpFolder: Path.resolve __dirname + "/../data/dumpFolder"
  213. uploadFolder: Path.resolve __dirname + "/../data/uploads"
  214. # Automatic Snapshots
  215. # -------------------
  216. automaticSnapshots:
  217. # How long should we wait after the user last edited to
  218. # take a snapshot?
  219. waitTimeAfterLastEdit: 5 * minutes
  220. # Even if edits are still taking place, this is maximum
  221. # time to wait before taking another snapshot.
  222. maxTimeBetweenSnapshots: 30 * minutes
  223. # Smoke test
  224. # ----------
  225. # Provide log in credentials and a project to be able to run
  226. # some basic smoke tests to check the core functionality.
  227. #
  228. # smokeTest:
  229. # user: ""
  230. # password: ""
  231. # projectId: ""
  232. nav:
  233. left_footer: [{
  234. text: "Powered by <a href='https://www.sharelatex.com'>ShareLaTeX</a> © 2014"
  235. }]
  236. right_footer: [{
  237. text: "<i class='fa fa-github-square'></i> Contribute on Github"
  238. url: "https://github.com/sharelatex/sharelatex"
  239. }]
  240. header: [{
  241. text: "Register"
  242. url: "/register"
  243. only_when_logged_out: true
  244. }, {
  245. text: "Log In"
  246. url: "/login"
  247. only_when_logged_out: true
  248. }, {
  249. text: "Projects"
  250. url: "/project"
  251. only_when_logged_in: true
  252. }, {
  253. text: "Account"
  254. only_when_logged_in: true
  255. dropdown: [{
  256. text: "Account Settings"
  257. url: "/user/settings"
  258. }, {
  259. divider: true
  260. }, {
  261. text: "Log out"
  262. url: "/logout"
  263. }]
  264. }]
  265. # templates: [{
  266. # name : "cv_or_resume",
  267. # url : "/templates/cv"
  268. # }, {
  269. # name : "cover_letter",
  270. # url : "/templates/cover-letters"
  271. # }, {
  272. # name : "journal_article",
  273. # url : "/templates/journals"
  274. # }, {
  275. # name : "presentation",
  276. # url : "/templates/presentations"
  277. # }, {
  278. # name : "thesis",
  279. # url : "/templates/thesis"
  280. # }, {
  281. # name : "bibliographies",
  282. # url : "/templates/bibliographies"
  283. # }, {
  284. # name : "view_all",
  285. # url : "/templates"
  286. # }]
  287. redirects:
  288. "/templates/index": "/templates/"
  289. proxyUrls: {}
  290. reloadModuleViewsOnEachRequest: true