settings.defaults.coffee 7.0 KB

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