settings.defaults.coffee 19 KB

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