settings.development.coffee 5.5 KB

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