settings.defaults.coffee 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. docstore:
  65. url : "http://localhost:3016"
  66. versioning:
  67. snapshotwaitms:3000
  68. url: "http://localhost:4000"
  69. username: httpAuthUser
  70. password: httpAuthPass
  71. recurly:
  72. privateKey: ""
  73. apiKey: ""
  74. subdomain: ""
  75. chat:
  76. url: "http://localhost:3010"
  77. templates:
  78. port: 3007
  79. blog:
  80. port: 3008
  81. filestore:
  82. url: "http://localhost:3009"
  83. clsi:
  84. url: "http://localhost:3013"
  85. templates_api:
  86. url: "http://localhost:3007"
  87. # Where your instance of ShareLaTeX can be found publically. Used in emails
  88. # that are sent out, generated links, etc.
  89. siteUrl : 'http://localhost:3000'
  90. # Same, but with http auth credentials.
  91. httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'
  92. # Security
  93. # --------
  94. security:
  95. sessionSecret: sessionSecret
  96. httpAuthUsers: httpAuthUsers
  97. # Default features
  98. # ----------------
  99. #
  100. # You can select the features that are enabled by default for new
  101. # new users.
  102. defaultFeatures: defaultFeatures =
  103. collaborators: -1
  104. dropbox: true
  105. versioning: true
  106. plans: plans = [{
  107. planCode: "personal"
  108. name: "Personal"
  109. price: 0
  110. features: defaultFeatures
  111. }]
  112. # Spelling languages
  113. # ------------------
  114. #
  115. # You must have the corresponding aspell package installed to
  116. # be able to use a language.
  117. languages: [
  118. {name: "English", code: "en"}
  119. ]
  120. # Email support
  121. # -------------
  122. #
  123. # ShareLaTeX uses nodemailer (http://www.nodemailer.com/) to send transactional emails.
  124. # To see the range of transport and options they support, see http://www.nodemailer.com/docs/transports
  125. #email:
  126. # fromAddress: ""
  127. # replyTo: ""
  128. # lifecycle: false
  129. ## Example transport and parameter settings for Amazon SES
  130. # transport: "SES"
  131. # parameters:
  132. # AWSAccessKeyID: ""
  133. # AWSSecretKey: ""
  134. # Third party services
  135. # --------------------
  136. #
  137. # ShareLaTeX's regular newsletter is managed by Markdown mail. Add your
  138. # credentials here to integrate with this.
  139. # markdownmail:
  140. # secret: ""
  141. # list_id: ""
  142. #
  143. # Fill in your unique token from various analytics services to enable
  144. # them.
  145. # analytics:
  146. # ga:
  147. # token: ""
  148. #
  149. # ShareLaTeX's help desk is provided by tenderapp.com
  150. # tenderUrl: ""
  151. #
  152. # Production Settings
  153. # -------------------
  154. # Should javascript assets be served minified or not. Note that you will
  155. # need to run `grunt compile:minify` within the web-sharelatex directory
  156. # to generate these.
  157. useMinifiedJs: false
  158. # Should static assets be sent with a header to tell the browser to cache
  159. # them.
  160. cacheStaticAssets: false
  161. # If you are running ShareLaTeX over https, set this to true to send the
  162. # cookie with a secure flag (recommended).
  163. secureCookie: false
  164. # Internal configs
  165. # ----------------
  166. path:
  167. # If we ever need to write something to disk (e.g. incoming requests
  168. # that need processing but may be too big for memory, then write
  169. # them to disk here).
  170. dumpFolder: Path.resolve "data/dumpFolder"
  171. # Automatic Snapshots
  172. # -------------------
  173. automaticSnapshots:
  174. # How long should we wait after the user last edited to
  175. # take a snapshot?
  176. waitTimeAfterLastEdit: 5 * minutes
  177. # Even if edits are still taking place, this is maximum
  178. # time to wait before taking another snapshot.
  179. maxTimeBetweenSnapshots: 30 * minutes
  180. # Smoke test
  181. # ----------
  182. # Provide log in credentials and a project to be able to run
  183. # some basic smoke tests to check the core functionality.
  184. #
  185. # smokeTest:
  186. # user: ""
  187. # password: ""
  188. # projectId: ""