settings.defaults.coffee 6.2 KB

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