settings.development.coffee.example 5.7 KB

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