 	settings.templates =
 		mountPointUrl: "/templates"
 		user_id: process.env["SHARELATEX_TEMPLATES_USER_ID"]
+		
+	settings.templateLinks = parse(process.env["SHARELATEX_NEW_PROJECT_TEMPLATE_LINKS"])
 
 
 # /Learn

	# dictionaries you have installed. These should be set for the `code` for
	# each language.
	languages: [{
		"code":"en",
		"name":"English (American)"
		},{
		"code":"en_GB",
		"name":"English (British)"
		},{
		"code":"af",
		"name":"Africaans"
		},{
		"code":"am",
		"name":"Amharic"
		},{
		"code":"ar",
		"name":"Arabic"
		},{
		"code":"hy",
		"name":"Armenian"
		},{
		"code":"gl",
		"name":"Galician"
		},{
		"code":"eu",
		"name":"Basque"
		},{
		"code":"bn",
		"name":"Bengali"
		},{
		"code":"br",
		"name":"Breton"
		},{
		"code":"bg",
		"name":"Bulgarian"
		},{
		"code":"ca",
		"name":"Catalan"
		},{
		"code":"hr",
		"name":"Croatian"
		},{
		"code":"cs",
		"name":"Czech"
		},{
		"code":"da",
		"name":"Danish"
		},{
		"code":"nl",
		"name":"Dutch"
		},{
		"code":"eo",
		"name":"Esperanto"
		},{
		"code":"et",
		"name":"Estonian"
		},{
		"code":"fo",
		"name":"Faroese"
		},{
		"code":"fr",
		"name":"French"
		},{
		"code":"de",
		"name":"German"
		},{
		"code":"el",
		"name":"Greek"
		},{
		"code":"gu",
		"name":"Gujarati"
		},{
		"code":"he",
		"name":"Hebrew"
		},{
		"code":"hi",
		"name":"Hindi"
		},{
		"code":"hu",
		"name":"Hungarian"
		},{
		"code":"is",
		"name":"Icelandic"
		},{
		"code":"id",
		"name":"Indonesian"
		},{
		"code":"ga",
		"name":"Irish"
		},{
		"code":"it",
		"name":"Italian"
		},{
		"code":"kn",
		"name":"Kannada"
		},{
		"code":"kk",
		"name":"Kazakh"
		},{
		"code":"ku",
		"name":"Kurdish"
		},{
		"code":"lv",
		"name":"Latvian"
		},{
		"code":"lt",
		"name":"Lithuanian"
		},{
		"code":"ml",
		"name":"Malayalam"
		},{
		"code":"mr",
		"name":"Marathi"
		},{
		"code":"nr",
		"name":"Ndebele"
		},{
		"code":"ns",
		"name":"Northern Sotho"
		},{
		"code":"no",
		"name":"Norwegian"
		},{
		"code":"or",
		"name":"Oriya"
		},{
		"code":"fa",
		"name":"Persian"
		},{
		"code":"pl",
		"name":"Polish"
		},{
		"code":"pt_BR",
		"name":"Portuguese (Brazilian)"
		},{
		"code":"pt_PT",
		"name":"Portuguese (European)"
		},{
		"code":"pa",
		"name":"Punjabi"
		},{
		"code":"ro",
		"name":"Romanian"
		},{
		"code":"ru",
		"name":"Russian"
		},{
		"code":"sk",
		"name":"Slovak"
		},{
		"code":"sl",
		"name":"Slovenian"
		},{
		"code":"st",
		"name":"Southern Sotho"
		},{
		"code":"es",
		"name":"Spanish"
		},{
		"code":"ss",
		"name":"Swazi"
		},{
		"code":"sv",
		"name":"Swedish"
		},{
		"code":"tl",
		"name":"Tagalog"
		},{
		"code":"ta",
		"name":"Tamil"
		},{
		"code":"te",
		"name":"Telugu"
		},{
		"code":"ts",
		"name":"Tsonga"
		},{
		"code":"tn",
		"name":"Tswana"
		},{
		"code":"uk",
		"name":"Ukrainian"
		},{
		"code":"hsb",
		"name":"Upper Sorbian"
		},{
		"code":"uz",
		"name":"Uzbek"
		},{
		"code":"cy",
		"name":"Welsh"
		},{
		"code":"xh",
		"name":"Xhosa"
		},{
		"code":"zu",
		"name":"Zulu"
		}
	]
	
	# Service locations
	# -----------------

	# ShareLaTeX is comprised of many small services, which each expose
	# an HTTP API running on a different port. Generally you
	# can leave these as they are unless you have some other services
	# running which conflict, or want to run the web process on port 80.
	# internal:
	# 	web:
	# 		port: webPort = 3000
	# 		host: "localhost"
	# 	documentupdater:
	# 		port: docUpdaterPort = 3003
	# 		host: "localhost"
	# 	filestore:
	# 		port: filestorePort = 3009
	# 		host: "localhost"
	# 	chat:
	# 		port: chatPort = 3010
	# 		host: "localhost"
	# 	tags:
	# 		port: tagsPort = 3012
	# 		host: "localhost"
	# 	clsi:
	# 		port: clsiPort = 3013
	# 		host: "localhost"
	# 	trackchanges:
	# 		port: trackchangesPort = 3015
	# 		host: "localhost"
	# 	docstore:
	# 		port: docstorePort = 3016
	# 		host: "localhost"
	# 	spelling:
	# 		port: spellingPort = 3005
	# 		host: "localhost"
	# 	templates:
	# 		port: templatesPort = 3007
	# 		host: "localhost"

	# If you change the above config, or run some services on remote servers,
	# you need to tell the other services where to find them:
	apis:
		web:
			url: "http://localhost:3000"
			user: httpAuthUser
			pass: httpAuthPass
	references:undefined
	notifications:undefined

	# 	documentupdater:
	# 		url : "http://localhost:#{docUpdaterPort}"
	# 	clsi:
	# 		url: "http://localhost:#{clsiPort}"
	# 	filestore:
	# 		url: "http://localhost:#{filestorePort}"
	# 	trackchanges:
	# 		url: "http://localhost:#{trackchangesPort}"
	# 	docstore:
	# 		url: "http://localhost:#{docstorePort}"
	# 	tags:
	# 		url: "http://localhost:#{tagsPort}"
	# 	spelling:
	# 		url: "http://localhost:#{spellingPort}"
	# 	chat:
	# 		url: "http://localhost:#{chatPort}"
	#	templates:
	#		url: "http://localhost:#{templatesPort}"


#### OPTIONAL CONFIGERABLE SETTINGS

https.globalAgent.maxSockets = 300

module.exports = settings

