settings.development.coffee 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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 credentials 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. mysql:
  38. clsi:
  39. database: "clsi"
  40. username: "clsi"
  41. password: ""
  42. # Service locations
  43. # -----------------
  44. # Configure which ports to run each service on. Generally you
  45. # can leave these as they are unless you have some other services
  46. # running which conflict, or want to run the web process on port 80.
  47. internal:
  48. web:
  49. port: webPort = 3000
  50. host: "localhost"
  51. documentupdater:
  52. port: docUpdaterPort = 3003
  53. host: "localhost"
  54. clsi:
  55. port: clsiPort = 3013
  56. host: "localhost"
  57. # Tell each service where to find the other services. If everything
  58. # is running locally then this is easy, but they exist as separate config
  59. # options incase you want to run some services on remote hosts.
  60. apis:
  61. web:
  62. url: "http://localhost:#{webPort}"
  63. user: httpAuthUser
  64. pass: httpAuthPass
  65. documentupdater:
  66. url : "http://localhost:#{docUpdaterPort}"
  67. clsi:
  68. url: "http://localhost:#{clsiPort}"
  69. thirdPartyDataStore:
  70. url : "http://localhost:3002"
  71. emptyProjectFlushDelayMiliseconds: 5 * seconds
  72. tags:
  73. url :"http://localhost:3012"
  74. spelling:
  75. url : "http://localhost:3005"
  76. versioning:
  77. snapshotwaitms:3000
  78. url: "http://localhost:4000"
  79. username: httpAuthUser
  80. password: httpAuthPass
  81. recurly:
  82. privateKey: ""
  83. apiKey: ""
  84. subdomain: ""
  85. chat:
  86. url: "http://localhost:3010"
  87. templates:
  88. port: 3007
  89. blog:
  90. port: 3008
  91. filestore:
  92. url: "http://localhost:3009"
  93. templates_api:
  94. url: "http://localhost:3014"
  95. # Where your instance of ShareLaTeX can be found publically. Used in emails
  96. # that are sent out, generated links, etc.
  97. siteUrl : 'http://localhost:3000'
  98. # Same, but with http auth credentials.
  99. httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'
  100. # Security
  101. # --------
  102. security:
  103. sessionSecret: sessionSecret
  104. httpAuthUsers: httpAuthUsers
  105. # Default features
  106. # ----------------
  107. #
  108. # You can select the features that are enabled by default for new
  109. # new users.
  110. plans: plans = [{
  111. planCode: "personal"
  112. name: "Personal"
  113. price: 0
  114. features:
  115. collaborators: -1
  116. dropbox: true
  117. versioning: true
  118. }]
  119. # Spelling languages
  120. # ------------------
  121. #
  122. # You must have the corresponding aspell package installed to
  123. # be able to use a language.
  124. languages: [
  125. {name: "English", code: "en"}
  126. ]
  127. # Third party services
  128. # --------------------
  129. #
  130. # ShareLaTeX's regular newsletter is managed by Markdown mail. Add your
  131. # credentials here to integrate with this.
  132. # markdownmail:
  133. # secret: ""
  134. # list_id: ""
  135. #
  136. # Fill in your unique token from various analytics services to enable
  137. # them.
  138. # analytics:
  139. # mixpanel:
  140. # token: ""
  141. # ga:
  142. # token: ""
  143. # heap:
  144. # token: ""
  145. #
  146. # ShareLaTeX's help desk is provided by tenderapp.com
  147. # tenderUrl: ""
  148. #
  149. # ShareLaTeX uses Amazon's SES api to send transactional emails.
  150. # Uncomment these lines and provide your credentials to be able to send emails.
  151. # ses:
  152. # "key":""
  153. # "secret":""
  154. # Production Settings
  155. # -------------------
  156. # Should javascript assets be served minified or not. Note that you will
  157. # need to run `grunt compile:minify` within the web-sharelatex directory
  158. # to generate these.
  159. useMinifiedJs: false
  160. # Should static assets be sent with a header to tell the browser to cache
  161. # them.
  162. cacheStaticAssets: false
  163. # If you are running ShareLaTeX over https, set this to true to send the
  164. # cookie with a secure flag (recommended).
  165. secureCookie: false
  166. # Internal configs
  167. # ----------------
  168. path:
  169. # If we ever need to write something to disk (e.g. incoming requests
  170. # that need processing but may be too big for memory, then write
  171. # them to disk here).
  172. dumpFolder: Path.resolve "data/dumpFolder"
  173. # Where to write the project to disk before running LaTeX on it
  174. compilesDir: Path.resolve(__dirname + "/../compiles")
  175. # Where to cache downloaded URLs for the CLSI
  176. clsiCacheDir: Path.resolve(__dirname + "/../cache")
  177. # Automatic Snapshots
  178. # -------------------
  179. automaticSnapshots:
  180. # How long should we wait after the user last edited to
  181. # take a snapshot?
  182. waitTimeAfterLastEdit: 5 * minutes
  183. # Even if edits are still taking place, this is maximum
  184. # time to wait before taking another snapshot.
  185. maxTimeBetweenSnapshots: 30 * minutes
  186. # Smoke test
  187. # ----------
  188. # Provide log in credentials and a project to be able to run
  189. # some basic smoke tests to check the core functionality.
  190. #
  191. # smokeTest:
  192. # user: ""
  193. # password: ""
  194. # projectId: ""