settings.defaults.coffee 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  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 = process.env['WEB_API_USER']
  10. httpAuthPass = process.env['WEB_API_PASSWORD']
  11. httpAuthUsers = {}
  12. if httpAuthUser and httpAuthPass
  13. httpAuthUsers[httpAuthUser] = httpAuthPass
  14. sessionSecret = process.env['SESSION_SECRET'] or "secret-please-change"
  15. if process.env['V1_API_URL'] or process.env['V1_HOST']
  16. v1Api =
  17. url: process.env['V1_API_URL'] or "http://#{process.env['V1_HOST']}:5000"
  18. user: process.env['V1_API_USER']
  19. pass: process.env['V1_API_PASSWORD']
  20. else
  21. v1Api =
  22. url: undefined
  23. user: undefined
  24. pass: undefined
  25. module.exports = settings =
  26. allowAnonymousReadAndWriteSharing:
  27. process.env['SHARELATEX_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING'] == 'true'
  28. # Databases
  29. # ---------
  30. mongo:
  31. url : process.env['MONGO_CONNECTION_STRING'] || process.env['MONGO_URL'] || "mongodb://#{process.env['MONGO_HOST'] or '127.0.0.1'}/sharelatex"
  32. poolSize: parseInt(process.env['MONGO_POOL_SIZE'], 10) || 10
  33. redis:
  34. web:
  35. host: process.env['REDIS_HOST'] || "localhost"
  36. port: process.env['REDIS_PORT'] || "6379"
  37. password: process.env["REDIS_PASSWORD"] or ""
  38. maxRetriesPerRequest: parseInt(process.env["REDIS_MAX_RETRIES_PER_REQUEST"] || '20')
  39. # websessions:
  40. # cluster: [
  41. # {host: 'localhost', port: 7000}
  42. # {host: 'localhost', port: 7001}
  43. # {host: 'localhost', port: 7002}
  44. # {host: 'localhost', port: 7003}
  45. # {host: 'localhost', port: 7004}
  46. # {host: 'localhost', port: 7005}
  47. # ]
  48. # ratelimiter:
  49. # cluster: [
  50. # {host: 'localhost', port: 7000}
  51. # {host: 'localhost', port: 7001}
  52. # {host: 'localhost', port: 7002}
  53. # {host: 'localhost', port: 7003}
  54. # {host: 'localhost', port: 7004}
  55. # {host: 'localhost', port: 7005}
  56. # ]
  57. # cooldown:
  58. # cluster: [
  59. # {host: 'localhost', port: 7000}
  60. # {host: 'localhost', port: 7001}
  61. # {host: 'localhost', port: 7002}
  62. # {host: 'localhost', port: 7003}
  63. # {host: 'localhost', port: 7004}
  64. # {host: 'localhost', port: 7005}
  65. # ]
  66. api:
  67. host: process.env['REDIS_HOST'] || "localhost"
  68. port: process.env['REDIS_PORT'] || "6379"
  69. password: process.env["REDIS_PASSWORD"] or ""
  70. maxRetriesPerRequest: parseInt(process.env["REDIS_MAX_RETRIES_PER_REQUEST"] || '20')
  71. # Service locations
  72. # -----------------
  73. # Configure which ports to run each service on. Generally you
  74. # can leave these as they are unless you have some other services
  75. # running which conflict, or want to run the web process on port 80.
  76. internal:
  77. web:
  78. port: webPort = process.env['WEB_PORT'] or 3000
  79. host: process.env['LISTEN_ADDRESS'] or 'localhost'
  80. documentupdater:
  81. port: docUpdaterPort = 3003
  82. gitBridgePublicBaseUrl: "http://#{process.env['GIT_BRIDGE_HOST'] || 'localhost'}:8000"
  83. # Tell each service where to find the other services. If everything
  84. # is running locally then this is easy, but they exist as separate config
  85. # options incase you want to run some services on remote hosts.
  86. apis:
  87. web:
  88. url: "http://#{process.env['WEB_API_HOST'] or process.env['WEB_HOST'] or "localhost"}:#{process.env['WEB_API_PORT'] or process.env['WEB_PORT'] or 3000}"
  89. user: httpAuthUser
  90. pass: httpAuthPass
  91. documentupdater:
  92. url : "http://#{process.env['DOCUPDATER_HOST'] or process.env['DOCUMENT_UPDATER_HOST'] or 'localhost'}:#{docUpdaterPort}"
  93. thirdPartyDataStore:
  94. url : "http://#{process.env['TPDS_HOST'] or 'localhost'}:3002"
  95. emptyProjectFlushDelayMiliseconds: 5 * seconds
  96. dropboxApp: process.env['TPDS_DROPBOX_APP']
  97. tags:
  98. url :"http://#{process.env['TAGS_HOST'] or 'localhost'}:3012"
  99. spelling:
  100. url : "http://#{process.env['SPELLING_HOST'] or 'localhost'}:3005"
  101. host: process.env['SPELLING_HOST']
  102. trackchanges:
  103. url : "http://#{process.env['TRACK_CHANGES_HOST'] or 'localhost'}:3015"
  104. project_history:
  105. sendProjectStructureOps: process.env.PROJECT_HISTORY_ENABLED == 'true' or false
  106. initializeHistoryForNewProjects: process.env.PROJECT_HISTORY_ENABLED == 'true' or false
  107. displayHistoryForNewProjects: process.env.PROJECT_HISTORY_ENABLED == 'true' or false
  108. url : "http://#{process.env['PROJECT_HISTORY_HOST'] or 'localhost'}:3054"
  109. docstore:
  110. url : "http://#{process.env['DOCSTORE_HOST'] or 'localhost'}:3016"
  111. pubUrl: "http://#{process.env['DOCSTORE_HOST'] or 'localhost'}:3016"
  112. chat:
  113. url: "http://#{process.env['CHAT_HOST'] or 'localhost'}:3010"
  114. internal_url: "http://#{process.env['CHAT_HOST'] or 'localhost'}:3010"
  115. blog:
  116. url: "http://localhost:3008"
  117. port: 3008
  118. university:
  119. url: "http://localhost:3011"
  120. filestore:
  121. url: "http://#{process.env['FILESTORE_HOST'] or 'localhost'}:3009"
  122. clsi:
  123. url: "http://#{process.env['CLSI_HOST'] or 'localhost'}:3013"
  124. # url: "http://#{process.env['CLSI_LB_HOST']}:3014"
  125. backendGroupName: undefined
  126. templates:
  127. url: "http://#{process.env['TEMPLATES_HOST'] or 'localhost'}:3007"
  128. githubSync:
  129. url: "http://#{process.env['GITHUB_SYNC_HOST'] or 'localhost'}:3022"
  130. recurly:
  131. apiKey: process.env['RECURLY_API_KEY'] or ''
  132. apiVersion: process.env['RECURLY_API_VERSION']
  133. subdomain: process.env['RECURLY_SUBDOMAIN'] or ''
  134. publicKey: process.env['RECURLY_PUBLIC_KEY'] or ''
  135. geoIpLookup:
  136. url: "http://#{process.env['GEOIP_HOST'] or process.env['FREEGEOIP_HOST'] or 'localhost'}:8080/json/"
  137. realTime:
  138. url: "http://#{process.env['REALTIME_HOST'] or 'localhost'}:3026"
  139. contacts:
  140. url: "http://#{process.env['CONTACTS_HOST'] or 'localhost'}:3036"
  141. sixpack:
  142. url: ""
  143. references:
  144. url: if process.env['REFERENCES_HOST']? then "http://#{process.env['REFERENCES_HOST']}:3040" else undefined
  145. notifications:
  146. url: "http://#{process.env['NOTIFICATIONS_HOST'] or 'localhost'}:3042"
  147. analytics:
  148. url: "http://#{process.env['ANALYTICS_HOST'] or 'localhost'}:3050"
  149. linkedUrlProxy:
  150. url: process.env['LINKED_URL_PROXY']
  151. thirdpartyreferences:
  152. url: "http://#{process.env['THIRD_PARTY_REFERENCES_HOST'] or 'localhost'}:3046"
  153. v1:
  154. url: v1Api.url
  155. user: v1Api.user
  156. pass: v1Api.pass
  157. v1_history:
  158. url: "http://#{process.env['V1_HISTORY_HOST'] or "localhost"}:3100/api"
  159. user: process.env['V1_HISTORY_USER'] or 'staging'
  160. pass: process.env['V1_HISTORY_PASSWORD'] or 'password'
  161. templates:
  162. user_id: process.env.TEMPLATES_USER_ID or "5395eb7aad1f29a88756c7f2"
  163. showSocialButtons: false
  164. showComments: false
  165. # cdn:
  166. # web:
  167. # host:"http://nowhere.sharelatex.dev"
  168. # darkHost:"http://cdn.sharelatex.dev:3000"
  169. # Where your instance of ShareLaTeX can be found publically. Used in emails
  170. # that are sent out, generated links, etc.
  171. siteUrl : siteUrl = process.env['PUBLIC_URL'] or 'http://localhost:3000'
  172. # Used to close the editor off to users
  173. editorIsOpen: process.env['EDITOR_IS_OPEN'] or true
  174. # Optional separate location for websocket connections, if unset defaults to siteUrl.
  175. wsUrl: process.env['WEBSOCKET_URL']
  176. # cookie domain
  177. # use full domain for cookies to only be accessible from that domain,
  178. # replace subdomain with dot to have them accessible on all subdomains
  179. cookieDomain: process.env['COOKIE_DOMAIN']
  180. cookieName: process.env['COOKIE_NAME'] or "sharelatex.sid"
  181. # this is only used if cookies are used for clsi backend
  182. #clsiCookieKey: "clsiserver"
  183. # Same, but with http auth credentials.
  184. httpAuthSiteUrl: "http://#{httpAuthUser}:#{httpAuthPass}@#{siteUrl}"
  185. robotsNoindex: (process.env['ROBOTS_NOINDEX'] == "true") or false
  186. maxEntitiesPerProject: 2000
  187. maxUploadSize: 50 * 1024 * 1024 # 50 MB
  188. # Security
  189. # --------
  190. security:
  191. sessionSecret: sessionSecret
  192. bcryptRounds: 12 # number of rounds used to hash user passwords (raised to power 2)
  193. httpAuthUsers: httpAuthUsers
  194. # Default features
  195. # ----------------
  196. #
  197. # You can select the features that are enabled by default for new
  198. # new users.
  199. defaultFeatures: defaultFeatures =
  200. collaborators: -1
  201. dropbox: true
  202. github: true
  203. gitBridge: true
  204. versioning: true
  205. compileTimeout: 180
  206. compileGroup: "standard"
  207. references: true
  208. templates: true
  209. trackChanges: true
  210. features:
  211. personal: defaultFeatures
  212. plans: plans = [{
  213. planCode: "personal"
  214. name: "Personal"
  215. price: 0
  216. features: defaultFeatures
  217. }]
  218. enableSubscriptions:false
  219. enabledLinkedFileTypes: (process.env['ENABLED_LINKED_FILE_TYPES'] or '').split(',')
  220. # i18n
  221. # ------
  222. #
  223. i18n:
  224. subdomainLang:
  225. www: {lngCode:"en", url: siteUrl}
  226. defaultLng: "en"
  227. # Spelling languages
  228. # ------------------
  229. #
  230. # You must have the corresponding aspell package installed to
  231. # be able to use a language.
  232. languages: [
  233. {code: "en", name: "English"},
  234. {code: "en_US", name: "English (American)"},
  235. {code: "en_GB", name: "English (British)"},
  236. {code: "en_CA", name: "English (Canadian)"},
  237. {code: "af", name: "Afrikaans"},
  238. {code: "ar", name: "Arabic"},
  239. {code: "gl", name: "Galician"},
  240. {code: "eu", name: "Basque"},
  241. {code: "br", name: "Breton"},
  242. {code: "bg", name: "Bulgarian"},
  243. {code: "ca", name: "Catalan"},
  244. {code: "hr", name: "Croatian"},
  245. {code: "cs", name: "Czech"},
  246. {code: "da", name: "Danish"},
  247. {code: "nl", name: "Dutch"},
  248. {code: "eo", name: "Esperanto"},
  249. {code: "et", name: "Estonian"},
  250. {code: "fo", name: "Faroese"},
  251. {code: "fr", name: "French"},
  252. {code: "de", name: "German"},
  253. {code: "el", name: "Greek"},
  254. {code: "id", name: "Indonesian"},
  255. {code: "ga", name: "Irish"},
  256. {code: "it", name: "Italian"},
  257. {code: "kk", name: "Kazakh"},
  258. {code: "ku", name: "Kurdish"},
  259. {code: "lv", name: "Latvian"},
  260. {code: "lt", name: "Lithuanian"},
  261. {code: "nr", name: "Ndebele"},
  262. {code: "ns", name: "Northern Sotho"},
  263. {code: "no", name: "Norwegian"},
  264. {code: "fa", name: "Persian"},
  265. {code: "pl", name: "Polish"},
  266. {code: "pt_BR", name: "Portuguese (Brazilian)"},
  267. {code: "pt_PT", name: "Portuguese (European)"},
  268. {code: "pa", name: "Punjabi"},
  269. {code: "ro", name: "Romanian"},
  270. {code: "ru", name: "Russian"},
  271. {code: "sk", name: "Slovak"},
  272. {code: "sl", name: "Slovenian"},
  273. {code: "st", name: "Southern Sotho"},
  274. {code: "es", name: "Spanish"},
  275. {code: "sv", name: "Swedish"},
  276. {code: "tl", name: "Tagalog"},
  277. {code: "ts", name: "Tsonga"},
  278. {code: "tn", name: "Tswana"},
  279. {code: "hsb", name: "Upper Sorbian"},
  280. {code: "cy", name: "Welsh"},
  281. {code: "xh", name: "Xhosa"}
  282. ]
  283. # Password Settings
  284. # -----------
  285. # These restrict the passwords users can use when registering
  286. # opts are from http://antelle.github.io/passfield
  287. # passwordStrengthOptions:
  288. # pattern: "aA$3"
  289. # length:
  290. # min: 6
  291. # max: 128
  292. # Email support
  293. # -------------
  294. #
  295. # ShareLaTeX uses nodemailer (http://www.nodemailer.com/) to send transactional emails.
  296. # To see the range of transport and options they support, see http://www.nodemailer.com/docs/transports
  297. #email:
  298. # fromAddress: ""
  299. # replyTo: ""
  300. # lifecycle: false
  301. ## Example transport and parameter settings for Amazon SES
  302. # transport: "SES"
  303. # parameters:
  304. # AWSAccessKeyID: ""
  305. # AWSSecretKey: ""
  306. # Third party services
  307. # --------------------
  308. #
  309. # ShareLaTeX's regular newsletter is managed by mailchimp. Add your
  310. # credentials here to integrate with this.
  311. # mailchimp:
  312. # api_key: ""
  313. # list_id: ""
  314. #
  315. # Fill in your unique token from various analytics services to enable
  316. # them.
  317. # analytics:
  318. # ga:
  319. # token: ""
  320. # gaOptimize:
  321. # id: ""
  322. # ShareLaTeX's help desk is provided by tenderapp.com
  323. # tenderUrl: ""
  324. #
  325. # Client-side error logging is provided by getsentry.com
  326. # sentry:
  327. # src: ""
  328. # publicDSN: ""
  329. #
  330. # src should be either a remote url like
  331. # //cdn.ravenjs.com/1.1.22/jquery,native/raven.min.js
  332. # or a local file in the js/libs directory.
  333. # The publicDSN is the token for the client-side getSentry service.
  334. # Production Settings
  335. # -------------------
  336. # Should javascript assets be served minified or not. Note that you will
  337. # need to run `grunt compile:minify` within the web-sharelatex directory
  338. # to generate these.
  339. useMinifiedJs: process.env['MINIFIED_JS'] == 'true' or false
  340. # Should static assets be sent with a header to tell the browser to cache
  341. # them.
  342. cacheStaticAssets: false
  343. # If you are running ShareLaTeX over https, set this to true to send the
  344. # cookie with a secure flag (recommended).
  345. secureCookie: false
  346. # 'SameSite' cookie setting. Can be set to 'lax', 'none' or 'strict'
  347. # 'lax' is recommended, as 'strict' will prevent people linking to projects
  348. # https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7
  349. sameSiteCookie: 'lax'
  350. # If you are running ShareLaTeX behind a proxy (like Apache, Nginx, etc)
  351. # then set this to true to allow it to correctly detect the forwarded IP
  352. # address and http/https protocol information.
  353. behindProxy: false
  354. # Cookie max age (in milliseconds). Set to false for a browser session.
  355. cookieSessionLength: 5 * 24 * 60 * 60 * 1000 # 5 days
  356. # When true, only allow invites to be sent to email addresses that
  357. # already have user accounts
  358. restrictInvitesToExistingAccounts: false
  359. # Should we allow access to any page without logging in? This includes
  360. # public projects, /learn, /templates, about pages, etc.
  361. allowPublicAccess: if process.env["SHARELATEX_ALLOW_PUBLIC_ACCESS"] == 'true' then true else false
  362. enableHomepage: process.env["HOME_PAGE_ENABLED"] == 'true'
  363. # editor should be open by default
  364. editorIsOpen: if process.env["EDITOR_OPEN"] == 'false' then false else true
  365. # site should be open by default
  366. siteIsOpen: if process.env["SITE_OPEN"] == 'false' then false else true
  367. # Use a single compile directory for all users in a project
  368. # (otherwise each user has their own directory)
  369. # disablePerUserCompiles: true
  370. # Domain the client (pdfjs) should download the compiled pdf from
  371. pdfDownloadDomain: process.env["PDF_DOWNLOAD_DOMAIN"] #"http://clsi-lb:3014"
  372. # Maximum size of text documents in the real-time editing system.
  373. max_doc_length: 2 * 1024 * 1024 # 2mb
  374. # Internal configs
  375. # ----------------
  376. path:
  377. # If we ever need to write something to disk (e.g. incoming requests
  378. # that need processing but may be too big for memory, then write
  379. # them to disk here).
  380. dumpFolder: "/data/dumpFolder"
  381. uploadFolder: "/data/uploads"
  382. # Automatic Snapshots
  383. # -------------------
  384. automaticSnapshots:
  385. # How long should we wait after the user last edited to
  386. # take a snapshot?
  387. waitTimeAfterLastEdit: 5 * minutes
  388. # Even if edits are still taking place, this is maximum
  389. # time to wait before taking another snapshot.
  390. maxTimeBetweenSnapshots: 30 * minutes
  391. # Smoke test
  392. # ----------
  393. # Provide log in credentials and a project to be able to run
  394. # some basic smoke tests to check the core functionality.
  395. #
  396. smokeTest:
  397. user: process.env['SMOKE_TEST_USER']
  398. userId: process.env['SMOKE_TEST_USER_ID']
  399. password: process.env['SMOKE_TEST_PASSWORD']
  400. projectId: process.env['SMOKE_TEST_PROJECT_ID']
  401. rateLimitSubject: process.env['SMOKE_TEST_RATE_LIMIT_SUBJECT'] or "127.0.0.1"
  402. appName: process.env['APP_NAME'] or "ShareLaTeX (Community Edition)"
  403. adminEmail: process.env['ADMIN_EMAIL'] or "placeholder@example.com"
  404. salesEmail: process.env['SALES_EMAIL'] or "placeholder@example.com"
  405. statusPageUrl: process.env['OVERLEAF_STATUS_URL'] or "status.overleaf.com"
  406. brandPrefix: process.env['BRAND_PREFIX'] or "sl-" # Set to 'ol-' for overleaf styles
  407. nav:
  408. title: "ShareLaTeX Community Edition"
  409. left_footer: [{
  410. text: "Powered by <a href='https://www.sharelatex.com'>ShareLaTeX</a> © 2016"
  411. }]
  412. right_footer: [{
  413. text: "<i class='fa fa-github-square'></i> Fork on Github!"
  414. url: "https://github.com/sharelatex/sharelatex"
  415. }]
  416. showSubscriptionLink: false
  417. header_extras: []
  418. # Example:
  419. # header_extras: [{text: "Some Page", url: "http://example.com/some/page", class: "subdued"}]
  420. recaptcha:
  421. disabled:
  422. invite: true
  423. register: true
  424. customisation: {}
  425. # templates: [{
  426. # name : "cv_or_resume",
  427. # url : "/templates/cv"
  428. # }, {
  429. # name : "cover_letter",
  430. # url : "/templates/cover-letters"
  431. # }, {
  432. # name : "journal_article",
  433. # url : "/templates/journals"
  434. # }, {
  435. # name : "presentation",
  436. # url : "/templates/presentations"
  437. # }, {
  438. # name : "thesis",
  439. # url : "/templates/thesis"
  440. # }, {
  441. # name : "bibliographies",
  442. # url : "/templates/bibliographies"
  443. # }, {
  444. # name : "view_all",
  445. # url : "/templates"
  446. # }]
  447. redirects:
  448. "/templates/index": "/templates/"
  449. reloadModuleViewsOnEachRequest: process.env['NODE_ENV'] == 'development'
  450. domainLicences: [
  451. ]
  452. sixpack:
  453. domain:""
  454. # ShareLaTeX Server Pro options (https://www.sharelatex.com/university/onsite.html)
  455. # ----------
  456. # LDAP
  457. # ----------
  458. # Settings below use a working LDAP test server kindly provided by forumsys.com
  459. # When testing with forumsys.com use username = einstein and password = password
  460. # ldap :
  461. # host: 'ldap://ldap.forumsys.com'
  462. # dn: 'uid=:userKey,dc=example,dc=com'
  463. # baseSearch: 'dc=example,dc=com'
  464. # filter: "(uid=:userKey)"
  465. # failMessage: 'LDAP User Fail'
  466. # fieldName: 'LDAP User'
  467. # placeholder: 'email@example.com'
  468. # emailAtt: 'mail'
  469. # anonymous: false
  470. # adminDN: 'cn=read-only-admin,dc=example,dc=com'
  471. # adminPW: 'password'
  472. # starttls: true
  473. # tlsOptions:
  474. # rejectUnauthorized: false
  475. # ca: ['/etc/ldap/ca_certs.pem']
  476. #templateLinks: [{
  477. # name : "CV projects",
  478. # url : "/templates/cv"
  479. #},{
  480. # name : "all projects",
  481. # url: "/templates/all"
  482. #}]
  483. rateLimit:
  484. autoCompile:
  485. everyone: process.env['RATE_LIMIT_AUTO_COMPILE_EVERYONE'] or 100
  486. standard: process.env['RATE_LIMIT_AUTO_COMPILE_STANDARD'] or 25
  487. # currentImage: "texlive-full:2017.1"
  488. # imageRoot: "<DOCKER REPOSITORY ROOT>" # without any trailing slash
  489. compileBodySizeLimitMb: process.env['COMPILE_BODY_SIZE_LIMIT_MB'] or 5
  490. validRootDocExtensions: ['tex', 'Rtex', 'ltx']
  491. emailConfirmationDisabled: (process.env['EMAIL_CONFIRMATION_DISABLED'] == "true") or false
  492. # allowedImageNames: [
  493. # {imageName: 'texlive-full:2017.1', imageDesc: 'TeXLive 2017'}
  494. # {imageName: 'wl_texlive:2018.1', imageDesc: 'Legacy OL TeXLive 2015'}
  495. # {imageName: 'texlive-full:2016.1', imageDesc: 'Legacy SL TeXLive 2016'}
  496. # {imageName: 'texlive-full:2015.1', imageDesc: 'Legacy SL TeXLive 2015'}
  497. # {imageName: 'texlive-full:2014.2', imageDesc: 'Legacy SL TeXLive 2014.2'}
  498. # ]
  499. # module options
  500. # ----------
  501. modules:
  502. sanitize:
  503. options:
  504. allowedTags: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', 'table', 'thead', 'col', 'caption', 'tbody', 'tr', 'th', 'td', 'tfoot', 'pre', 'iframe', 'img', 'figure', 'figcaption', 'span', 'source', 'video', 'del' ]
  505. allowedAttributes:
  506. 'a': [ 'href', 'name', 'target', 'class', 'event-tracking', 'event-tracking-ga', 'event-tracking-label', 'event-tracking-trigger' ]
  507. 'div': [ 'class', 'id', 'style' ]
  508. 'h1': [ 'class', 'id' ]
  509. 'h2': [ 'class', 'id' ]
  510. 'h3': [ 'class', 'id' ]
  511. 'h4': [ 'class', 'id' ]
  512. 'h5': [ 'class', 'id' ]
  513. 'h6': [ 'class', 'id' ]
  514. 'col': [ 'width' ]
  515. 'figure': [ 'class', 'id', 'style']
  516. 'figcaption': [ 'class', 'id', 'style']
  517. 'i': [ 'aria-hidden', 'aria-label', 'class', 'id' ]
  518. 'iframe': [ 'allowfullscreen', 'frameborder', 'height', 'src', 'style', 'width' ]
  519. 'img': [ 'alt', 'class', 'src', 'style' ]
  520. 'source': [ 'src', 'type' ]
  521. 'span': [ 'class', 'id', 'style' ]
  522. 'table': [ 'border', 'class', 'id', 'style' ]
  523. 'td': [ 'colspan', 'rowspan', 'headers' ]
  524. 'th': [ 'abbr', 'headers', 'colspan', 'rowspan', 'scope', 'sorted', 'style' ]
  525. 'tr': [ 'class' ]
  526. 'video': [ 'alt', 'class', 'controls', 'height', 'width' ]