@directus/app 9.20.3 → 9.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (500) hide show
  1. package/dist/assets/@directus_extensions-sdk.7480601b.entry.js +1 -0
  2. package/dist/assets/{accounts.8d02a534.js → accounts.6f69dc83.js} +1 -1
  3. package/dist/assets/active-line.f3bab3a5.js +1 -0
  4. package/dist/assets/{activity-log.957853bb.js → activity-log.2e944bfa.js} +1 -1
  5. package/dist/assets/{activity.58bbe1c2.js → activity.dda3417f.js} +1 -1
  6. package/dist/assets/apl.1805b26f.js +1 -0
  7. package/dist/assets/{ar-SA.3a51ad1e.js → ar-SA.c5ee16de.js} +1 -1
  8. package/dist/assets/{architecture.0ded5b28.js → architecture.e66cc597.js} +1 -1
  9. package/dist/assets/asciiarmor.ffaf0f62.js +1 -0
  10. package/dist/assets/asn.1.cd62dee4.js +1 -0
  11. package/dist/assets/asterisk.07d1e4af.js +1 -0
  12. package/dist/assets/{authentication.5b7d5fa7.js → authentication.8a718856.js} +5 -5
  13. package/dist/assets/autorefresh.e63fec5a.js +1 -0
  14. package/dist/assets/{aws.890dfda5.js → aws.99d49c74.js} +1 -1
  15. package/dist/assets/{backing-directus.7f54a4af.js → backing-directus.23aeddff.js} +1 -1
  16. package/dist/assets/brainfuck.587235ad.js +1 -0
  17. package/dist/assets/{cli.4e995657.js → cli.8e7d9b17.js} +4 -4
  18. package/dist/assets/{cli.bf0b2442.js → cli.ce3a6393.js} +2 -2
  19. package/dist/assets/clike.8df07672.js +1 -0
  20. package/dist/assets/clojure.7ed940f7.js +1 -0
  21. package/dist/assets/{cloudron.0a16f34b.js → cloudron.0cf18005.js} +1 -1
  22. package/dist/assets/cmake.8058664d.js +1 -0
  23. package/dist/assets/cobol.7925af76.js +1 -0
  24. package/dist/assets/{codebase-overview.2ba91a80.js → codebase-overview.4707b17a.js} +1 -1
  25. package/dist/assets/coffeescript.36666708.js +1 -0
  26. package/dist/assets/{collections.7fa07fe7.js → collections.30500b8b.js} +2 -2
  27. package/dist/assets/{collections.2a61805a.js → collections.88058903.js} +2 -2
  28. package/dist/assets/{collections.ea858bf6.js → collections.b74ab838.js} +3 -3
  29. package/dist/assets/commonlisp.ce672eb5.js +1 -0
  30. package/dist/assets/{conditions.32339903.js → conditions.db9bebfc.js} +1 -1
  31. package/dist/assets/{config-options.53449c2c.js → config-options.48260929.js} +12 -12
  32. package/dist/assets/{content.18716bf7.js → content.647b054c.js} +1 -1
  33. package/dist/assets/{creating-extensions.0a6d6d3b.js → creating-extensions.e032c2f0.js} +3 -3
  34. package/dist/assets/crystal.3c7c09cc.js +1 -0
  35. package/dist/assets/css.b68c041b.js +1 -0
  36. package/dist/assets/cypher.3b38874c.js +4 -0
  37. package/dist/assets/d.0460be39.js +1 -0
  38. package/dist/assets/dart.680bdb1d.js +1 -0
  39. package/dist/assets/{data-model.b5eb7565.js → data-model.63af932c.js} +3 -3
  40. package/dist/assets/de-DE.590d3c70.js +1 -0
  41. package/dist/assets/diff.11dadb16.js +1 -0
  42. package/dist/assets/{digitalocean-app-platform.4063d6cc.js → digitalocean-app-platform.adb9fc63.js} +2 -2
  43. package/dist/assets/{display-templates.65a9b519.js → display-templates.7c1dae6d.js} +1 -1
  44. package/dist/assets/display.87df21d6.js +1 -0
  45. package/dist/assets/{displays.b72d546c.js → displays.c0024804.js} +5 -5
  46. package/dist/assets/django.c5c2bb33.js +1 -0
  47. package/dist/assets/{docker.ae6227ab.js → docker.a790e063.js} +1 -1
  48. package/dist/assets/dockerfile.cb57c90a.js +1 -0
  49. package/dist/assets/{documentation.6628aaac.js → documentation.1783cd53.js} +1 -1
  50. package/dist/assets/dtd.4bdd906a.js +1 -0
  51. package/dist/assets/dylan.af09e3f8.js +1 -0
  52. package/dist/assets/ebnf.0ec983c0.js +1 -0
  53. package/dist/assets/ecl.eeba0610.js +1 -0
  54. package/dist/assets/eiffel.d9fec659.js +1 -0
  55. package/dist/assets/elm.c3ce2b54.js +1 -0
  56. package/dist/assets/{email-templates.5e1b5472.js → email-templates.ed708d89.js} +1 -1
  57. package/dist/assets/{endpoints.44874916.js → endpoints.10a1484a.js} +1 -1
  58. package/dist/assets/erlang.d00fab30.js +1 -0
  59. package/dist/assets/es-419.37d0e1bd.js +1 -0
  60. package/dist/assets/{extensions.9790f6ff.js → extensions.d542042f.js} +1 -1
  61. package/dist/assets/factor.a6dddf2c.js +1 -0
  62. package/dist/assets/{faq.0fd5ca6e.js → faq.8904941c.js} +2 -2
  63. package/dist/assets/fcl.0c78a020.js +1 -0
  64. package/dist/assets/{field-types.e5bd5900.js → field-types.e3e041fc.js} +1 -1
  65. package/dist/assets/{field.b9b55fc2.js → field.64c29e0b.js} +1 -1
  66. package/dist/assets/{fields.fc8af154.js → fields.1597bfad.js} +1 -1
  67. package/dist/assets/{fields.7df6f624.js → fields.c76c2d8b.js} +1 -1
  68. package/dist/assets/{file-library.7a11d866.js → file-library.8fb3da43.js} +1 -1
  69. package/dist/assets/{files.84b41f2f.js → files.d8e3acf4.js} +2 -2
  70. package/dist/assets/{filter-rules.099e9689.js → filter-rules.edb18765.js} +4 -4
  71. package/dist/assets/{filters.98d31bd5.js → filters.26e88a50.js} +1 -1
  72. package/dist/assets/{flows.b6ebb4b6.js → flows.8c6f69bb.js} +6 -6
  73. package/dist/assets/{flows.2646c3ae.js → flows.f014b9cc.js} +2 -2
  74. package/dist/assets/{folders.35cfde90.js → folders.8aec87f5.js} +5 -5
  75. package/dist/assets/forth.fbb63d06.js +1 -0
  76. package/dist/assets/fortran.cbc14824.js +1 -0
  77. package/dist/assets/fr-FR.d8dbf5de.js +1 -0
  78. package/dist/assets/gas.3e3eaaa0.js +1 -0
  79. package/dist/assets/{gcp.ce76381f.js → gcp.97542e88.js} +5 -5
  80. package/dist/assets/gfm.a5597fec.js +1 -0
  81. package/dist/assets/gherkin.9cfc1ed7.js +1 -0
  82. package/dist/assets/{github-ci.b4dde47f.js → github-ci.e7d15770.js} +2 -2
  83. package/dist/assets/{glossary.3b14c64d.js → glossary.beaf358c.js} +1 -1
  84. package/dist/assets/{glossary.930fe38e.js → glossary.c972e836.js} +1 -1
  85. package/dist/assets/go.f180871e.js +1 -0
  86. package/dist/assets/groovy.4db995a9.js +1 -0
  87. package/dist/assets/haml.ed77ce51.js +1 -0
  88. package/dist/assets/handlebars.81504d91.js +1 -0
  89. package/dist/assets/haskell-literate.d54dc9c7.js +1 -0
  90. package/dist/assets/haskell.f21c4399.js +1 -0
  91. package/dist/assets/haxe.50f0db0c.js +1 -0
  92. package/dist/assets/{hooks.b9909639.js → hooks.feaad058.js} +1 -1
  93. package/dist/assets/htmlembedded.5ff69a18.js +1 -0
  94. package/dist/assets/htmlmixed.5efed62b.js +1 -0
  95. package/dist/assets/{htmlmixed.bca09a1b.js → htmlmixed.f69cc072.js} +1 -1
  96. package/dist/assets/http.6b260d22.js +1 -0
  97. package/dist/assets/hu-HU.b086156a.js +1 -0
  98. package/dist/assets/idl.617214c8.js +1 -0
  99. package/dist/assets/{iis.63d75601.js → iis.0358929d.js} +1 -1
  100. package/dist/assets/{import-export.fe680598.js → import-export.391b74e0.js} +2 -2
  101. package/dist/assets/{index.ffcfdc79.js → index.04b73e2f.js} +1 -1
  102. package/dist/assets/{index.3ccb1a62.js → index.09845961.js} +1 -1
  103. package/dist/assets/{index.671547c3.js → index.130287f6.js} +1 -1
  104. package/dist/assets/{index.3d4f0091.css → index.19e6c20c.css} +1 -1
  105. package/dist/assets/{index.20179e31.js → index.1ba23fe5.js} +1 -1
  106. package/dist/assets/{index.f19e5b18.js → index.1f330fc3.js} +1 -1
  107. package/dist/assets/{index.7f210d25.js → index.24999c03.js} +1 -1
  108. package/dist/assets/{index.06aaef91.entry.js → index.312f2c91.entry.js} +2693 -2687
  109. package/dist/assets/{index.b242e4b8.js → index.31f6e6f2.js} +3 -3
  110. package/dist/assets/{index.7c5199ad.js → index.330c3aee.js} +1 -1
  111. package/dist/assets/{index.549a82a6.js → index.3470f134.js} +1 -1
  112. package/dist/assets/index.38d152bf.js +1 -0
  113. package/dist/assets/{index.a6c65314.js → index.4044e5c7.js} +1 -1
  114. package/dist/assets/{index.764b9d6e.js → index.4706b3f5.js} +1 -1
  115. package/dist/assets/{index.875a771b.js → index.4b24f075.js} +1 -1
  116. package/dist/assets/{index.6949d989.js → index.4c6e76b7.js} +1 -1
  117. package/dist/assets/{index.0d7f4d79.js → index.522f44b0.js} +1 -1
  118. package/dist/assets/{index.1c9cfeb8.js → index.525d8fd8.js} +1 -1
  119. package/dist/assets/{index.d8e4727e.js → index.528e4b54.js} +1 -1
  120. package/dist/assets/{index.d9e48160.js → index.52a4297c.js} +1 -1
  121. package/dist/assets/{index.34c47fcf.js → index.530fd584.js} +1 -1
  122. package/dist/assets/{index.91e98759.js → index.546018df.js} +1 -1
  123. package/dist/assets/{index.d557b36c.js → index.57542755.js} +1 -1
  124. package/dist/assets/{index.425c965c.js → index.5a8952da.js} +1 -1
  125. package/dist/assets/{index.9b6db0de.js → index.5cf97c2b.js} +1 -1
  126. package/dist/assets/index.65e5d28f.css +1 -0
  127. package/dist/assets/{index.08c5d5a2.js → index.6b77e807.js} +1 -1
  128. package/dist/assets/{index.393b7fd6.js → index.6bf3a163.js} +1 -1
  129. package/dist/assets/{index.fe4bc374.js → index.6c07a132.js} +1 -1
  130. package/dist/assets/{index.1f99dc82.js → index.6c4fabf1.js} +1 -1
  131. package/dist/assets/{index.7468a23c.js → index.6fa71870.js} +1 -1
  132. package/dist/assets/{index.8fb3c07f.js → index.7045dfad.js} +1 -1
  133. package/dist/assets/{index.aa66a39f.js → index.75ef0473.js} +1 -1
  134. package/dist/assets/{index.c3959367.js → index.77b8f02e.js} +1 -1
  135. package/dist/assets/{index.62e48e8e.js → index.7943fd38.js} +1 -1
  136. package/dist/assets/{index.ac96f5b3.js → index.7c5b74dc.js} +1 -1
  137. package/dist/assets/{index.f32d0fbe.js → index.7de5db57.js} +1 -1
  138. package/dist/assets/{index.8aa50b59.js → index.7e90d361.js} +1 -1
  139. package/dist/assets/{index.2399ffb8.js → index.7edb8b15.js} +1 -1
  140. package/dist/assets/{index.d370fafd.js → index.7fcf2b86.js} +1 -1
  141. package/dist/assets/{index.5c5acddc.js → index.80106d2d.js} +1 -1
  142. package/dist/assets/{index.8b8e6073.js → index.804b3c9b.js} +1 -1
  143. package/dist/assets/{index.5264aa26.js → index.8063dc25.js} +1 -1
  144. package/dist/assets/{index.eb772cab.js → index.81a02f8c.js} +1 -1
  145. package/dist/assets/{index.38e5dfc6.js → index.81d5b763.js} +1 -1
  146. package/dist/assets/{index.7269b9b7.js → index.8200528c.js} +1 -1
  147. package/dist/assets/{index.00acb7aa.js → index.82939b3a.js} +1 -1
  148. package/dist/assets/{index.d024a491.js → index.8446e18c.js} +1 -1
  149. package/dist/assets/index.87afb869.js +1 -0
  150. package/dist/assets/{index.7e37814b.js → index.92f59a75.js} +1 -1
  151. package/dist/assets/{index.3abfd687.js → index.98cb4ee1.js} +1 -1
  152. package/dist/assets/{index.486669b9.js → index.9d2fbf00.js} +1 -1
  153. package/dist/assets/{index.ec87e7f6.js → index.9dfe292c.js} +1 -1
  154. package/dist/assets/{index.4ce96101.js → index.a1b7be9b.js} +1 -1
  155. package/dist/assets/{index.1b594a21.js → index.a5356d91.js} +1 -1
  156. package/dist/assets/{index.b67fb5fc.js → index.ab4e5ca3.js} +1 -1
  157. package/dist/assets/{index.f511aff3.js → index.ab7b6cba.js} +1 -1
  158. package/dist/assets/{index.578c30ec.js → index.ac6c3fe9.js} +1 -1
  159. package/dist/assets/{index.5062f951.js → index.adc560cb.js} +1 -1
  160. package/dist/assets/{index.045e97f0.js → index.ae4bf6ea.js} +1 -1
  161. package/dist/assets/{index.9f69b190.js → index.aeaa0aa9.js} +1 -1
  162. package/dist/assets/{index.8b9e43f4.js → index.afc6b30e.js} +1 -1
  163. package/dist/assets/{index.23def130.js → index.b02dbd39.js} +1 -1
  164. package/dist/assets/{index.3cb24d7f.js → index.b391672d.js} +1 -1
  165. package/dist/assets/{index.19a506a0.js → index.b503f187.js} +1 -1
  166. package/dist/assets/{index.a88d2d0b.js → index.b7113e87.js} +1 -1
  167. package/dist/assets/{index.7bb84aa5.js → index.c156c46e.js} +1 -1
  168. package/dist/assets/{index.68337c85.js → index.c5e16ef6.js} +1 -1
  169. package/dist/assets/{index.45686201.js → index.c85c3f77.js} +1 -1
  170. package/dist/assets/{index.03886e4a.js → index.cb7799d1.js} +1 -1
  171. package/dist/assets/{index.eb4d5cbc.js → index.cb93c1e8.js} +1 -1
  172. package/dist/assets/{index.dc4d9b6a.js → index.d0d998a0.js} +1 -1
  173. package/dist/assets/{index.c2858d95.js → index.d790d684.js} +1 -1
  174. package/dist/assets/{index.a264494d.js → index.dc9006a1.js} +1 -1
  175. package/dist/assets/{index.8130aabc.js → index.e3619b04.js} +1 -1
  176. package/dist/assets/{index.ab5ebdc3.js → index.e4224764.js} +1 -1
  177. package/dist/assets/{index.426d219b.js → index.e5079c3a.js} +1 -1
  178. package/dist/assets/{index.90ecf353.js → index.e6971ab1.js} +1 -1
  179. package/dist/assets/{index.b2e447e3.js → index.e85bc569.js} +1 -1
  180. package/dist/assets/{index.42614221.js → index.e95b7e4b.js} +1 -1
  181. package/dist/assets/{index.0608a502.js → index.ec8cfaac.js} +1 -1
  182. package/dist/assets/{index.b0e3c55c.js → index.f2e26d1f.js} +1 -1
  183. package/dist/assets/{index.eecb0d4b.js → index.f60d22d0.js} +1 -1
  184. package/dist/assets/{index.a8b94b31.js → index.f828781f.js} +1 -1
  185. package/dist/assets/{index.2b61f9fb.js → index.fb6b1657.js} +1 -1
  186. package/dist/assets/{index.9c4a7f65.js → index.fb8023b0.js} +1 -1
  187. package/dist/assets/{index.79264a03.js → index.fe536421.js} +1 -1
  188. package/dist/assets/{input-rich-text-html.9a04a626.js → input-rich-text-html.b1656039.js} +30 -30
  189. package/dist/assets/{insights.bb6e6dd9.js → insights.8a1beae6.js} +2 -2
  190. package/dist/assets/{installation.a80b7bdd.js → installation.2db8d0e1.js} +1 -1
  191. package/dist/assets/{interface.6b3d318d.js → interface.8e4a64f0.js} +1 -1
  192. package/dist/assets/{interfaces.9c9cb203.js → interfaces.8e88b01f.js} +4 -4
  193. package/dist/assets/{introduction.17ce0958.js → introduction.2a0882fe.js} +4 -4
  194. package/dist/assets/{introduction.74d5f276.js → introduction.42a2136e.js} +1 -1
  195. package/dist/assets/{introduction.2b473cdb.js → introduction.4f0ccbaf.js} +1 -1
  196. package/dist/assets/{introduction.23bcca02.js → introduction.dbd85d4e.js} +1 -1
  197. package/dist/assets/it-IT.53711e9b.js +1 -0
  198. package/dist/assets/{items.a200a734.js → items.9f358fa7.js} +5 -5
  199. package/dist/assets/{items.d9558b12.js → items.abb8d314.js} +1 -1
  200. package/dist/assets/javascript-hint.bd3c0fcf.js +1 -0
  201. package/dist/assets/javascript.7eff1543.js +1 -0
  202. package/dist/assets/jinja2.eec1b998.js +1 -0
  203. package/dist/assets/jsx.8808ecb1.js +1 -0
  204. package/dist/assets/julia.56479fbf.js +1 -0
  205. package/dist/assets/{layouts.71139077.js → layouts.9c64beac.js} +3 -3
  206. package/dist/assets/{layouts.67e010c3.js → layouts.b4771384.js} +1 -1
  207. package/dist/assets/livescript.37040ed1.js +1 -0
  208. package/dist/assets/lua.7730f9fd.js +1 -0
  209. package/dist/assets/{manual.be26c257.js → manual.4a53ccfe.js} +4 -4
  210. package/dist/assets/mark-selection.c1a5d4e1.js +1 -0
  211. package/dist/assets/match-highlighter.ed7a2467.js +1 -0
  212. package/dist/assets/{matchbrackets.9e20b864.js → matchbrackets.ebc48bf8.js} +1 -1
  213. package/dist/assets/mathematica.1dbfb6f4.js +1 -0
  214. package/dist/assets/mbox.0ac8a216.js +1 -0
  215. package/dist/assets/{migrations.58c8fd96.js → migrations.2969a369.js} +1 -1
  216. package/dist/assets/mirc.1cc06f67.js +1 -0
  217. package/dist/assets/mllike.cee4eaf7.js +1 -0
  218. package/dist/assets/modelica.2292d0b8.js +1 -0
  219. package/dist/assets/{modules.0cfbe882.js → modules.f057fcd0.js} +3 -3
  220. package/dist/assets/mscgen.38b6bb11.js +1 -0
  221. package/dist/assets/multiplex.1d92e024.js +3 -0
  222. package/dist/assets/mumps.f37c25cb.js +1 -0
  223. package/dist/assets/nginx.39e016a3.js +1 -0
  224. package/dist/assets/{notifications.7b442623.js → notifications.ca876814.js} +11 -11
  225. package/dist/assets/nsis.1cf932c7.js +1 -0
  226. package/dist/assets/ntriples.e6c37d71.js +1 -0
  227. package/dist/assets/octave.2bec4045.js +1 -0
  228. package/dist/assets/{operations.bd173669.js → operations.246298bc.js} +11 -11
  229. package/dist/assets/{operations.6fcceb98.js → operations.64af444f.js} +3 -3
  230. package/dist/assets/{operations.30bbad94.js → operations.b4042de2.js} +2 -2
  231. package/dist/assets/overlay.16f98fb6.js +1 -0
  232. package/dist/assets/{overview.cb1196c4.js → overview.0b4ab371.js} +1 -1
  233. package/dist/assets/{overview.4c1683c3.js → overview.359f9713.js} +1 -1
  234. package/dist/assets/{overview.23ad824a.js → overview.40893677.js} +1 -1
  235. package/dist/assets/oz.8955a131.js +1 -0
  236. package/dist/assets/{panels.187b8f0d.js → panels.3969b423.js} +2 -2
  237. package/dist/assets/pascal.7213d964.js +1 -0
  238. package/dist/assets/pegjs.6877c220.js +1 -0
  239. package/dist/assets/perl.7f37e0c4.js +1 -0
  240. package/dist/assets/{permissions.2ad2e118.js → permissions.0712320e.js} +4 -4
  241. package/dist/assets/php.b63c0c50.js +1 -0
  242. package/dist/assets/pig.1cddd148.js +1 -0
  243. package/dist/assets/{pinia.24c7b35a.entry.js → pinia.0d44ec62.entry.js} +2 -2
  244. package/dist/assets/{plesk.279941fc.js → plesk.e3ea514c.js} +5 -5
  245. package/dist/assets/powershell.3aecbe91.js +1 -0
  246. package/dist/assets/{presets-bookmarks.62ac9314.js → presets-bookmarks.0baf10eb.js} +1 -1
  247. package/dist/assets/{presets.0390ff92.js → presets.0de7849a.js} +8 -8
  248. package/dist/assets/{project-settings.8b91aa04.js → project-settings.6e5956c8.js} +1 -1
  249. package/dist/assets/{projects.97bc15fa.js → projects.12d7a177.js} +1 -1
  250. package/dist/assets/properties.db539b03.js +1 -0
  251. package/dist/assets/protobuf.0fa0e9b4.js +1 -0
  252. package/dist/assets/pt-BR.2c2e8c4f.js +1 -0
  253. package/dist/assets/pug.e6d33f3a.js +1 -0
  254. package/dist/assets/puppet.18346b43.js +1 -0
  255. package/dist/assets/python.065d28e0.js +1 -0
  256. package/dist/assets/q.ed3c142c.js +1 -0
  257. package/dist/assets/{query.19ee7756.js → query.6dcece55.js} +1 -1
  258. package/dist/assets/{quickstart.96d7fa17.js → quickstart.f1c431cf.js} +3 -3
  259. package/dist/assets/{quickstart.7f55e26e.js → quickstart.fd328631.js} +2 -2
  260. package/dist/assets/r.f2ad8682.js +1 -0
  261. package/dist/assets/{readme.abb2691e.js → readme.c063616b.js} +1 -1
  262. package/dist/assets/{relations.1409faa0.js → relations.c92ebc4e.js} +6 -6
  263. package/dist/assets/{relationship.8e3bc45d.js → relationship.0344c790.js} +1 -1
  264. package/dist/assets/{relationships.2449eed5.js → relationships.ad2ee267.js} +7 -7
  265. package/dist/assets/{resources.f9b64d6f.js → resources.84b84252.js} +1 -1
  266. package/dist/assets/{revisions.7ffa76fe.js → revisions.39f423d0.js} +4 -4
  267. package/dist/assets/ro-RO.4c33f715.js +1 -0
  268. package/dist/assets/{roles.ce6518a4.js → roles.89c51107.js} +7 -7
  269. package/dist/assets/rpm.1674f668.js +1 -0
  270. package/dist/assets/rst.0a69f626.js +1 -0
  271. package/dist/assets/ruby.02498746.js +1 -0
  272. package/dist/assets/{ruby.514cda97.js → ruby.d805273a.js} +1 -1
  273. package/dist/assets/{running-locally.8b135453.js → running-locally.24e1b4bf.js} +6 -6
  274. package/dist/assets/runtime-core.esm-bundler.22ec0346.js +1 -0
  275. package/dist/assets/rust.90ce6688.js +1 -0
  276. package/dist/assets/sas.3b045c8d.js +1 -0
  277. package/dist/assets/sass.4fcb9b12.js +1 -0
  278. package/dist/assets/{schema.6649576e.js → schema.c326d911.js} +1 -1
  279. package/dist/assets/scheme.eb7abc5c.js +1 -0
  280. package/dist/assets/{sdk.33dcc072.js → sdk.2fdc3788.js} +17 -17
  281. package/dist/assets/{security.acb2be94.js → security.a0326c54.js} +1 -1
  282. package/dist/assets/{server.60bfa539.js → server.5b19042c.js} +1 -1
  283. package/dist/assets/{settings.6ac3895b.js → settings.2195b191.js} +1 -1
  284. package/dist/assets/{settings.a00aa4fa.js → settings.2553780f.js} +1 -1
  285. package/dist/assets/{shares.9a7ea736.js → shares.a17e644c.js} +1 -1
  286. package/dist/assets/shell.09d717f3.js +1 -0
  287. package/dist/assets/show-hint.4fc17cec.js +1 -0
  288. package/dist/assets/sieve.fe87517f.js +1 -0
  289. package/dist/assets/slim.76f6114d.js +1 -0
  290. package/dist/assets/smalltalk.eaf13594.js +1 -0
  291. package/dist/assets/smarty.abf4421d.js +1 -0
  292. package/dist/assets/solr.62208f30.js +1 -0
  293. package/dist/assets/soy.b2db807b.js +1 -0
  294. package/dist/assets/sparql.7042a2b3.js +1 -0
  295. package/dist/assets/spreadsheet.ca1422ad.js +1 -0
  296. package/dist/assets/sql.fcb976c5.js +1 -0
  297. package/dist/assets/{sso-examples.eb3ba478.js → sso-examples.8a36c968.js} +2 -2
  298. package/dist/assets/{sso.29d67116.js → sso.92e5b5f1.js} +4 -4
  299. package/dist/assets/stex.30c4dc01.js +1 -0
  300. package/dist/assets/{stex.dd8072e9.js → stex.a5fe2e4a.js} +1 -1
  301. package/dist/assets/stylus.f7fcee76.js +1 -0
  302. package/dist/assets/{support.e9e535b3.js → support.f153d4ae.js} +1 -1
  303. package/dist/assets/swift.116cdb17.js +1 -0
  304. package/dist/assets/tcl.42613799.js +1 -0
  305. package/dist/assets/{teams.347f0563.js → teams.c564c81f.js} +1 -1
  306. package/dist/assets/textile.4285b886.js +1 -0
  307. package/dist/assets/{themes.32a50b86.js → themes.6c5c943f.js} +2 -2
  308. package/dist/assets/tiddlywiki.eb66e0c7.js +1 -0
  309. package/dist/assets/tiki.c796e616.js +1 -0
  310. package/dist/assets/toml.3b8b1e04.js +1 -0
  311. package/dist/assets/tornado.89f4bce8.js +1 -0
  312. package/dist/assets/tr-TR.328a2546.js +1 -0
  313. package/dist/assets/{translation-strings.285d6bb2.js → translation-strings.326a2741.js} +1 -1
  314. package/dist/assets/translations.4c0efc6a.js +1 -0
  315. package/dist/assets/{translations.f87a601e.js → translations.645f8c9c.js} +1 -1
  316. package/dist/assets/{triggers.325e50d8.js → triggers.44703cf0.js} +1 -1
  317. package/dist/assets/troff.51ba9964.js +1 -0
  318. package/dist/assets/ttcn-cfg.62ff9e40.js +1 -0
  319. package/dist/assets/ttcn.08f34f21.js +1 -0
  320. package/dist/assets/turtle.2efc3e1b.js +1 -0
  321. package/dist/assets/twig.bd0ee3cd.js +1 -0
  322. package/dist/assets/{ubuntu.3ba252fe.js → ubuntu.47e06de3.js} +2 -2
  323. package/dist/assets/uk-UA.fe247137.js +1 -0
  324. package/dist/assets/{upgrades-migrations.a091b8af.js → upgrades-migrations.a23cace7.js} +1 -1
  325. package/dist/assets/{use-sync.d9160f34.js → use-sync.e83d9ab3.js} +3 -3
  326. package/dist/assets/{user-directory.9ca05985.js → user-directory.e1f15d1a.js} +1 -1
  327. package/dist/assets/{users-roles-permissions.bb71f6c9.js → users-roles-permissions.14757490.js} +1 -1
  328. package/dist/assets/{users.a44125e3.js → users.0ea4e372.js} +1 -1
  329. package/dist/assets/{utilities.0380c496.js → utilities.c76e17ac.js} +7 -7
  330. package/dist/assets/validation.99c6fcd4.js +1 -0
  331. package/dist/assets/vb.e77c04f4.js +1 -0
  332. package/dist/assets/vbscript.b1155c12.js +1 -0
  333. package/dist/assets/velocity.5f33a92c.js +1 -0
  334. package/dist/assets/verilog.064306e8.js +1 -0
  335. package/dist/assets/vhdl.c71b4d0c.js +1 -0
  336. package/dist/assets/{vue-i18n.df8d89e7.entry.js → vue-i18n.fbc77449.entry.js} +1 -1
  337. package/dist/assets/vue-router.3a828e63.entry.js +5 -0
  338. package/dist/assets/vue.1a8f18be.js +1 -0
  339. package/dist/assets/vue.486f3e62.entry.js +1 -0
  340. package/dist/assets/vue.runtime.esm-bundler.f6138180.js +1 -0
  341. package/dist/assets/wast.7970d24f.js +1 -0
  342. package/dist/assets/{webhooks.2d23be4c.js → webhooks.105c0454.js} +1 -1
  343. package/dist/assets/{webhooks.40d9a7a3.js → webhooks.d7f419fe.js} +4 -4
  344. package/dist/assets/webidl.f56d782e.js +1 -0
  345. package/dist/assets/{xml.6c641966.js → xml.c9106c48.js} +1 -1
  346. package/dist/assets/xquery.d326f7d2.js +1 -0
  347. package/dist/assets/yacas.aab21d14.js +1 -0
  348. package/dist/assets/yaml-frontmatter.c4684bee.js +1 -0
  349. package/dist/assets/yaml.02beca9a.js +1 -0
  350. package/dist/assets/z80.2c343a72.js +1 -0
  351. package/dist/assets/{zh-CN.a9e8d795.js → zh-CN.a8f9e881.js} +1 -1
  352. package/dist/index.html +8 -8
  353. package/package.json +61 -61
  354. package/dist/assets/@directus_extensions-sdk.fd0e4213.entry.js +0 -1
  355. package/dist/assets/active-line.6ad3cc1b.js +0 -1
  356. package/dist/assets/apl.c686918c.js +0 -1
  357. package/dist/assets/asciiarmor.461dfa97.js +0 -1
  358. package/dist/assets/asn.1.edf36206.js +0 -1
  359. package/dist/assets/asterisk.ec604180.js +0 -1
  360. package/dist/assets/autorefresh.12942f0a.js +0 -1
  361. package/dist/assets/brainfuck.f0a9ac27.js +0 -1
  362. package/dist/assets/clike.6813c8af.js +0 -1
  363. package/dist/assets/clojure.282c98e9.js +0 -1
  364. package/dist/assets/cmake.3a19ac2e.js +0 -1
  365. package/dist/assets/cobol.1a968dc2.js +0 -1
  366. package/dist/assets/coffeescript.f4d04eff.js +0 -1
  367. package/dist/assets/commonlisp.b6ce4697.js +0 -1
  368. package/dist/assets/crystal.c82fbe0e.js +0 -1
  369. package/dist/assets/css.f5233cc9.js +0 -1
  370. package/dist/assets/cypher.039d2c7c.js +0 -4
  371. package/dist/assets/d.9a180f99.js +0 -1
  372. package/dist/assets/dart.6eb5ddde.js +0 -1
  373. package/dist/assets/de-DE.ae6e5ffb.js +0 -1
  374. package/dist/assets/diff.5b316696.js +0 -1
  375. package/dist/assets/display.4a967445.js +0 -1
  376. package/dist/assets/django.6c78c8f8.js +0 -1
  377. package/dist/assets/dockerfile.99dfeb4b.js +0 -1
  378. package/dist/assets/dtd.0634c33c.js +0 -1
  379. package/dist/assets/dylan.8694ba80.js +0 -1
  380. package/dist/assets/ebnf.462b292d.js +0 -1
  381. package/dist/assets/ecl.3dbd76a1.js +0 -1
  382. package/dist/assets/eiffel.4ec3277b.js +0 -1
  383. package/dist/assets/elm.04561af7.js +0 -1
  384. package/dist/assets/erlang.4826206d.js +0 -1
  385. package/dist/assets/es-419.582d398a.js +0 -1
  386. package/dist/assets/factor.bc3247f5.js +0 -1
  387. package/dist/assets/fcl.9f2d1e59.js +0 -1
  388. package/dist/assets/forth.bd08c7e3.js +0 -1
  389. package/dist/assets/fortran.2ae538b0.js +0 -1
  390. package/dist/assets/fr-FR.fa3f9dfa.js +0 -1
  391. package/dist/assets/gas.01960520.js +0 -1
  392. package/dist/assets/gfm.8e7c0694.js +0 -1
  393. package/dist/assets/gherkin.c6599791.js +0 -1
  394. package/dist/assets/go.f623c1d3.js +0 -1
  395. package/dist/assets/groovy.b5a3df5c.js +0 -1
  396. package/dist/assets/haml.6302e530.js +0 -1
  397. package/dist/assets/handlebars.698c31d7.js +0 -1
  398. package/dist/assets/haskell-literate.d3ee41f3.js +0 -1
  399. package/dist/assets/haskell.e4bd92a1.js +0 -1
  400. package/dist/assets/haxe.db74ea0a.js +0 -1
  401. package/dist/assets/htmlembedded.67d9d54e.js +0 -1
  402. package/dist/assets/htmlmixed.f95449b1.js +0 -1
  403. package/dist/assets/http.16e0eb29.js +0 -1
  404. package/dist/assets/hu-HU.ff4d97e1.js +0 -1
  405. package/dist/assets/idl.fb34fd03.js +0 -1
  406. package/dist/assets/index.4ce1e26c.js +0 -1
  407. package/dist/assets/index.90515a60.css +0 -1
  408. package/dist/assets/index.a36c94c4.js +0 -1
  409. package/dist/assets/it-IT.5db21711.js +0 -1
  410. package/dist/assets/javascript-hint.835011a8.js +0 -1
  411. package/dist/assets/javascript.098ad3f4.js +0 -1
  412. package/dist/assets/jinja2.5d6e4ebc.js +0 -1
  413. package/dist/assets/jsx.9e86f9c1.js +0 -1
  414. package/dist/assets/julia.3d7819b8.js +0 -1
  415. package/dist/assets/livescript.d3e3ffd7.js +0 -1
  416. package/dist/assets/lua.dcc90e1a.js +0 -1
  417. package/dist/assets/mark-selection.555804b8.js +0 -1
  418. package/dist/assets/match-highlighter.d280d567.js +0 -1
  419. package/dist/assets/mathematica.a4cf7905.js +0 -1
  420. package/dist/assets/mbox.0118ba5e.js +0 -1
  421. package/dist/assets/mirc.f16a416b.js +0 -1
  422. package/dist/assets/mllike.8af83228.js +0 -1
  423. package/dist/assets/modelica.fff0e69c.js +0 -1
  424. package/dist/assets/mscgen.4f351ed7.js +0 -1
  425. package/dist/assets/multiplex.24637d75.js +0 -3
  426. package/dist/assets/mumps.b29547a0.js +0 -1
  427. package/dist/assets/nginx.0b30c51b.js +0 -1
  428. package/dist/assets/nsis.931674c1.js +0 -1
  429. package/dist/assets/ntriples.b3ee92f7.js +0 -1
  430. package/dist/assets/octave.9fa134a4.js +0 -1
  431. package/dist/assets/overlay.7325085f.js +0 -1
  432. package/dist/assets/oz.418a19b3.js +0 -1
  433. package/dist/assets/pascal.abc2efea.js +0 -1
  434. package/dist/assets/pegjs.533a8931.js +0 -1
  435. package/dist/assets/perl.b0843cce.js +0 -1
  436. package/dist/assets/php.c4294507.js +0 -1
  437. package/dist/assets/pig.9e076d83.js +0 -1
  438. package/dist/assets/powershell.9163521a.js +0 -1
  439. package/dist/assets/properties.7389537c.js +0 -1
  440. package/dist/assets/protobuf.3ba8f801.js +0 -1
  441. package/dist/assets/pt-BR.c51763f3.js +0 -1
  442. package/dist/assets/pug.b98726b9.js +0 -1
  443. package/dist/assets/puppet.c2c7aecb.js +0 -1
  444. package/dist/assets/python.672ad786.js +0 -1
  445. package/dist/assets/q.58e35d92.js +0 -1
  446. package/dist/assets/r.86a12cf3.js +0 -1
  447. package/dist/assets/ro-RO.52802a17.js +0 -1
  448. package/dist/assets/rpm.057276c6.js +0 -1
  449. package/dist/assets/rst.3911d824.js +0 -1
  450. package/dist/assets/ruby.4ca30934.js +0 -1
  451. package/dist/assets/runtime-core.esm-bundler.fe249c5c.js +0 -4
  452. package/dist/assets/rust.f8f204a0.js +0 -1
  453. package/dist/assets/sas.b027b508.js +0 -1
  454. package/dist/assets/sass.6778645c.js +0 -1
  455. package/dist/assets/scheme.7d2fc5ef.js +0 -1
  456. package/dist/assets/shell.586a365e.js +0 -1
  457. package/dist/assets/show-hint.294aed89.js +0 -1
  458. package/dist/assets/sieve.76492164.js +0 -1
  459. package/dist/assets/slim.b75d75fc.js +0 -1
  460. package/dist/assets/smalltalk.c3811c1d.js +0 -1
  461. package/dist/assets/smarty.7ad51fee.js +0 -1
  462. package/dist/assets/solr.bc858702.js +0 -1
  463. package/dist/assets/soy.3523b082.js +0 -1
  464. package/dist/assets/sparql.23f67405.js +0 -1
  465. package/dist/assets/spreadsheet.fa0c4509.js +0 -1
  466. package/dist/assets/sql.e5dcae4e.js +0 -1
  467. package/dist/assets/stex.9edbeb3d.js +0 -1
  468. package/dist/assets/stylus.71868f10.js +0 -1
  469. package/dist/assets/swift.141c772a.js +0 -1
  470. package/dist/assets/tcl.e5b16da9.js +0 -1
  471. package/dist/assets/textile.0ba58239.js +0 -1
  472. package/dist/assets/tiddlywiki.cd3e074b.js +0 -1
  473. package/dist/assets/tiki.8884b81d.js +0 -1
  474. package/dist/assets/toml.0b104a38.js +0 -1
  475. package/dist/assets/tornado.ca0dd624.js +0 -1
  476. package/dist/assets/tr-TR.1dcfd6d4.js +0 -1
  477. package/dist/assets/translations.074feb87.js +0 -1
  478. package/dist/assets/troff.ceff2948.js +0 -1
  479. package/dist/assets/ttcn-cfg.20ce326a.js +0 -1
  480. package/dist/assets/ttcn.348a5af1.js +0 -1
  481. package/dist/assets/turtle.a74dd24d.js +0 -1
  482. package/dist/assets/twig.103f6c63.js +0 -1
  483. package/dist/assets/uk-UA.99a7a7a6.js +0 -1
  484. package/dist/assets/validation.cb080608.js +0 -1
  485. package/dist/assets/vb.9bd07f67.js +0 -1
  486. package/dist/assets/vbscript.f266487f.js +0 -1
  487. package/dist/assets/velocity.b63b2da2.js +0 -1
  488. package/dist/assets/verilog.94262bc9.js +0 -1
  489. package/dist/assets/vhdl.89bc6c80.js +0 -1
  490. package/dist/assets/vue-router.805cb517.entry.js +0 -5
  491. package/dist/assets/vue.c7dd8317.entry.js +0 -1
  492. package/dist/assets/vue.e839556b.js +0 -1
  493. package/dist/assets/vue.runtime.esm-bundler.eb605ed6.js +0 -1
  494. package/dist/assets/wast.077750a6.js +0 -1
  495. package/dist/assets/webidl.4f90cc6b.js +0 -1
  496. package/dist/assets/xquery.1f517ebf.js +0 -1
  497. package/dist/assets/yacas.5d349152.js +0 -1
  498. package/dist/assets/yaml-frontmatter.744c0030.js +0 -1
  499. package/dist/assets/yaml.41d6e7e9.js +0 -1
  500. package/dist/assets/z80.7e67c12c.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as s,o as r,b as i,w as n,l,E as e,e as o}from"./runtime-core.esm-bundler.fe249c5c.js";const c={class:"markdown-body"},h=l("blockquote",null,[l("p",null,"Environment variables are used for all configuration within a Directus project. These variables can be defined in a number of ways, which we cover below.")],-1),_=l("h2",{id:"configuration-files",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#configuration-files"},"#"),e(" Configuration Files")],-1),p=l("p",null,[e("By default, Directus will read the "),l("code",null,".env"),e(" file located next to your project\u2019s "),l("code",null,"package.json"),e(" (typically in the root folder of your project) for its configuration. You can change this path and filename by setting the "),l("code",null,"CONFIG_PATH"),e(" environment variable before starting Directus. For example:")],-1),f=l("pre",null,[l("code",{class:"language-bash"},[e("CONFIG_PATH="),l("span",{class:"hljs-string"},'"/path/to/config.js"'),e(` npx directus start
1
+ import{a as s,o as r,e as i,y as n,u as l,q as e,z as o}from"./runtime-core.esm-bundler.22ec0346.js";const c={class:"markdown-body"},h=l("blockquote",null,[l("p",null,"Environment variables are used for all configuration within a Directus project. These variables can be defined in a number of ways, which we cover below.")],-1),_=l("h2",{id:"configuration-files",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#configuration-files"},"#"),e(" Configuration Files")],-1),p=l("p",null,[e("By default, Directus will read the "),l("code",null,".env"),e(" file located next to your project\u2019s "),l("code",null,"package.json"),e(" (typically in the root folder of your project) for its configuration. You can change this path and filename by setting the "),l("code",null,"CONFIG_PATH"),e(" environment variable before starting Directus. For example:")],-1),f=l("pre",null,[l("code",{class:"language-bash"},[e("CONFIG_PATH="),l("span",{class:"hljs-string"},'"/path/to/config.js"'),e(` npx directus start
2
2
  `)])],-1),m=l("p",null,[e("In case you prefer using a configuration file instead of environment variables, you can also use the "),l("code",null,"CONFIG_PATH"),e(" environment variable to instruct Directus to use a local configuration file instead of environment variables. The config file can be one of the following formats:")],-1),E=l("ul",null,[l("li",null,[l("a",{href:"#env"},".env")]),l("li",null,[l("a",{href:"#config-json"},"config.json")]),l("li",null,[l("a",{href:"#config-yaml"},"config.yaml")]),l("li",null,[l("a",{href:"#config-js"},"config.js")])],-1),A=l("h3",{id:".env",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#.env"},"#"),e(" .env")],-1),T=l("p",null,"If the config path has no file extension, or a file extension that\u2019s not one of the other supported formats, Directus will try reading the file config path as environment variables. This has the following structure:",-1),g=l("pre",null,[l("code",null,`HOST="0.0.0.0"
3
3
  PORT=8055
4
4
 
@@ -7,8 +7,8 @@ DB_HOST="localhost"
7
7
  DB_PORT=5432
8
8
 
9
9
  etc
10
- `)],-1),b=l("h3",{id:"config.json",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#config.json"},"#"),e(" config.json")],-1),R=l("p",null,"If you prefer a single JSON file for your configuration, create a JSON file with the environment variables as keys, for example:",-1),S=l("pre",null,[l("code",null,`CONFIG_PATH="/path/to/config.json"
11
- `)],-1),O=l("pre",null,[l("code",{class:"language-json"},[l("span",{class:"hljs-punctuation"},"{"),e(`
10
+ `)],-1),R=l("h3",{id:"config.json",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#config.json"},"#"),e(" config.json")],-1),b=l("p",null,"If you prefer a single JSON file for your configuration, create a JSON file with the environment variables as keys, for example:",-1),S=l("pre",null,[l("code",null,`CONFIG_PATH="/path/to/config.json"
11
+ `)],-1),I=l("pre",null,[l("code",{class:"language-json"},[l("span",{class:"hljs-punctuation"},"{"),e(`
12
12
  `),l("span",{class:"hljs-attr"},'"HOST"'),l("span",{class:"hljs-punctuation"},":"),e(),l("span",{class:"hljs-string"},'"0.0.0.0"'),l("span",{class:"hljs-punctuation"},","),e(`
13
13
  `),l("span",{class:"hljs-attr"},'"PORT"'),l("span",{class:"hljs-punctuation"},":"),e(),l("span",{class:"hljs-number"},"8055"),l("span",{class:"hljs-punctuation"},","),e(`
14
14
 
@@ -18,8 +18,8 @@ etc
18
18
 
19
19
  `),l("span",{class:"hljs-comment"},"// etc"),e(`
20
20
  `),l("span",{class:"hljs-punctuation"},"}"),e(`
21
- `)])],-1),I=l("h3",{id:"config.yaml",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#config.yaml"},"#"),e(" config.yaml")],-1),D=l("p",null,[e("Similar to JSON, you can use a "),l("code",null,".yaml"),e(" (or "),l("code",null,".yml"),e(") file for your config:")],-1),y=l("pre",null,[l("code",null,`CONFIG_PATH="/path/to/config.yaml"
22
- `)],-1),C=l("pre",null,[l("code",{class:"language-yaml"},[l("span",{class:"hljs-attr"},"HOST:"),e(),l("span",{class:"hljs-number"},"0.0"),l("span",{class:"hljs-number"},".0"),l("span",{class:"hljs-number"},".0"),e(`
21
+ `)])],-1),O=l("h3",{id:"config.yaml",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#config.yaml"},"#"),e(" config.yaml")],-1),D=l("p",null,[e("Similar to JSON, you can use a "),l("code",null,".yaml"),e(" (or "),l("code",null,".yml"),e(") file for your config:")],-1),y=l("pre",null,[l("code",null,`CONFIG_PATH="/path/to/config.yaml"
22
+ `)],-1),L=l("pre",null,[l("code",{class:"language-yaml"},[l("span",{class:"hljs-attr"},"HOST:"),e(),l("span",{class:"hljs-number"},"0.0"),l("span",{class:"hljs-number"},".0"),l("span",{class:"hljs-number"},".0"),e(`
23
23
  `),l("span",{class:"hljs-attr"},"PORT:"),e(),l("span",{class:"hljs-number"},"8055"),e(`
24
24
 
25
25
  `),l("span",{class:"hljs-attr"},"DB_CLIENT:"),e(),l("span",{class:"hljs-string"},"pg"),e(`
@@ -27,7 +27,7 @@ etc
27
27
  `),l("span",{class:"hljs-attr"},"DB_PORT:"),e(),l("span",{class:"hljs-number"},"5432"),e(`
28
28
  `),l("span",{class:"hljs-comment"},"#"),e(`
29
29
  `),l("span",{class:"hljs-comment"},"# etc"),e(`
30
- `)])],-1),L=l("h3",{id:"config.js",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#config.js"},"#"),e(" config.js")],-1),v=l("p",null,[e("Using a JavaScript file for your config allows you to dynamically generate the configuration of the project during startup. The JavaScript configuration supports two different formats, either an "),l("strong",null,"Object Structure"),e(" where the key is the environment variable name:")],-1),H=l("pre",null,[l("code",{class:"language-js"},[l("span",{class:"hljs-comment"},"// Object Syntax"),e(`
30
+ `)])],-1),C=l("h3",{id:"config.js",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#config.js"},"#"),e(" config.js")],-1),v=l("p",null,[e("Using a JavaScript file for your config allows you to dynamically generate the configuration of the project during startup. The JavaScript configuration supports two different formats, either an "),l("strong",null,"Object Structure"),e(" where the key is the environment variable name:")],-1),H=l("pre",null,[l("code",{class:"language-js"},[l("span",{class:"hljs-comment"},"// Object Syntax"),e(`
31
31
 
32
32
  `),l("span",{class:"hljs-variable language_"},"module"),e("."),l("span",{class:"hljs-property"},"exports"),e(` = {
33
33
  `),l("span",{class:"hljs-attr"},"HOST"),e(": "),l("span",{class:"hljs-string"},"'0.0.0.0'"),e(`,
@@ -76,7 +76,7 @@ DB_SSL__REJECT_UNAUTHORIZED="false"
76
76
  rejectUnauthorized: false
77
77
  }
78
78
  }
79
- `)],-1),G=l("h2",{id:"environment-syntax-prefix",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#environment-syntax-prefix"},"#"),e(" Environment Syntax Prefix")],-1),F=l("p",null,[e("Directus will attempt to "),l("a",{href:"#type-casting-and-nesting"},"automatically type cast environment variables"),e(" based on context clues. If you have a specific need for a given type, you can tell Directus what type to use for the given value by prefixing the value with "),l("code",null,"{type}:"),e(". The following types are available:")],-1),W=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Syntax Prefix"),l("th",null,"Example"),l("th",null,"Output")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"string")]),l("td",null,[l("code",null,"string:value")]),l("td",null,[l("code",null,'"value"')])]),l("tr",null,[l("td",null,[l("code",null,"number")]),l("td",null,[l("code",null,"number:3306")]),l("td",null,[l("code",null,"3306")])]),l("tr",null,[l("td",null,[l("code",null,"regex")]),l("td",null,[l("code",null,"regex:\\.example\\.com$")]),l("td",null,[l("code",null,"/\\.example\\.com$/")])]),l("tr",null,[l("td",null,[l("code",null,"array")]),l("td",null,[l("code",null,"array:https://example.com,https://example2.com"),e(),l("br"),e(),l("code",null,"array:string:https://example.com,regex:\\.example3\\.com$")]),l("td",null,[l("code",null,'["https://example.com", "https://example2.com"]'),e(),l("br"),e(),l("code",null,'["https://example.com", "https://example2.com", /\\.example3\\.com$/]')])]),l("tr",null,[l("td",null,[l("code",null,"json")]),l("td",null,[l("code",null,'json:{"items": ["example1", "example2"]}')]),l("td",null,[l("code",null,'{"items": ["example1", "example2"]}')])])])],-1),q=l("hr",null,null,-1),K=l("h2",{id:"general",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#general"},"#"),e(" General")],-1),Y=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"CONFIG_PATH")]),l("td",null,[e("Where your config file is located. See "),l("a",{href:"#configuration-files"},"Configuration Files")]),l("td",null,[l("code",null,".env")])]),l("tr",null,[l("td",null,[l("code",null,"HOST")]),l("td",null,"IP or host the API listens on."),l("td",null,[l("code",null,"0.0.0.0")])]),l("tr",null,[l("td",null,[l("code",null,"PORT")]),l("td",null,"What port to run the API under."),l("td",null,[l("code",null,"8055")])]),l("tr",null,[l("td",null,[l("code",null,"PUBLIC_URL"),l("sup",null,"[1]")]),l("td",null,"URL where your API can be reached on the web."),l("td",null,[l("code",null,"/")])]),l("tr",null,[l("td",null,[l("code",null,"LOG_LEVEL")]),l("td",null,[e("What level of detail to log. One of "),l("code",null,"fatal"),e(", "),l("code",null,"error"),e(", "),l("code",null,"warn"),e(", "),l("code",null,"info"),e(", "),l("code",null,"debug"),e(", "),l("code",null,"trace"),e(" or "),l("code",null,"silent"),e(".")]),l("td",null,[l("code",null,"info")])]),l("tr",null,[l("td",null,[l("code",null,"LOG_STYLE")]),l("td",null,[e("Render the logs human readable (pretty) or as JSON. One of "),l("code",null,"pretty"),e(", "),l("code",null,"raw"),e(".")]),l("td",null,[l("code",null,"pretty")])]),l("tr",null,[l("td",null,[l("code",null,"MAX_PAYLOAD_SIZE")]),l("td",null,"Controls the maximum request body size. Accepts number of bytes, or human readable string."),l("td",null,[l("code",null,"1mb")])]),l("tr",null,[l("td",null,[l("code",null,"ROOT_REDIRECT")]),l("td",null,[e("Where to redirect to when navigating to "),l("code",null,"/"),e(". Accepts a relative path, absolute URL, or "),l("code",null,"false"),e(" to disable.")]),l("td",null,[l("code",null,"./admin")])]),l("tr",null,[l("td",null,[l("code",null,"SERVE_APP")]),l("td",null,[e("Whether or not to serve the Admin App under "),l("code",null,"/admin"),e(".")]),l("td",null,[l("code",null,"true")])]),l("tr",null,[l("td",null,[l("code",null,"GRAPHQL_INTROSPECTION")]),l("td",null,"Whether or not to enable GraphQL Introspection"),l("td",null,[l("code",null,"true")])]),l("tr",null,[l("td",null,[l("code",null,"MAX_RELATIONAL_DEPTH")]),l("td",null,[e("The maximum depth when filtering / querying relational fields, with a minimum value of "),l("code",null,"2"),e(".")]),l("td",null,[l("code",null,"10")])])])],-1),z=l("p",null,[l("sup",null,"[1]"),e(" The PUBLIC_URL value is used for things like OAuth redirects, forgot-password emails, and logos that needs to be publicly available on the internet.")],-1),X=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Additional Logger Variables"),l("p",null,[e("All "),l("code",null,"LOGGER_*"),e(" environment variables are passed to the "),l("code",null,"options"),e(" configuration of a "),l("a",{href:"https://github.com/pinojs/pino/blob/master/docs/api.md#options",target:"_blank",rel:"noopener noreferrer"},[l("code",null,"Pino"),e(" instance")]),e(". All "),l("code",null,"LOGGER_HTTP*"),e(" environment variables are passed to the "),l("code",null,"options"),e(" configuration of a "),l("a",{href:"https://github.com/pinojs/pino-http#api",target:"_blank",rel:"noopener noreferrer"},[l("code",null,"Pino-http"),e(" instance")]),e(". Based on your project\u2019s needs, you can extend the "),l("code",null,"LOGGER_*"),e(" environment variables with any config you need to pass to the logger instance. If a LOGGER_LEVELS key is added, these values will be passed to the logger frontmatter, as described "),l("a",{href:"https://github.com/pinojs/pino/blob/master/docs/help.md#mapping-pino-log-levels-to-google-cloud-logging-stackdriver-severity-levels",target:"_blank",rel:"noopener noreferrer"},"here"),e(" for example. The format for adding LEVELS values is: "),l("code",null,'LOGGER_LEVELS="trace:DEBUG,debug:DEBUG,info:INFO,warn:WARNING,error:ERROR,fatal:CRITICAL"')])],-1),Z=l("h2",{id:"server",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#server"},"#"),e(" Server")],-1),J=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"SERVER_KEEP_ALIVE_TIMEOUT")]),l("td",null,"Timeout in milliseconds for socket to be destroyed"),l("td",null,[l("a",{href:"https://github.com/nodejs/node/blob/master/doc/api/http.md#serverkeepalivetimeout",target:"_blank",rel:"noopener noreferrer"},"server.keepAliveTimeout")])]),l("tr",null,[l("td",null,[l("code",null,"SERVER_HEADERS_TIMEOUT")]),l("td",null,"Timeout in milliseconds to parse HTTP headers"),l("td",null,[l("a",{href:"https://github.com/nodejs/node/blob/master/doc/api/http.md#serverheaderstimeout",target:"_blank",rel:"noopener noreferrer"},"server.headersTimeout")])])])],-1),Q=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Additional Server Variables"),l("p",null,[e("All "),l("code",null,"SERVER_*"),e(" environment variables are merged with "),l("code",null,"server"),e(" instance properties created from "),l("a",{href:"https://github.com/nodejs/node/blob/master/doc/api/http.md#class-httpserver",target:"_blank",rel:"noopener noreferrer"},"http.Server"),e(". This allows to configure server behind a proxy, a load balancer, etc. Be careful to not override methods of this instance otherwise you may incur into unexpected behaviors.")])],-1),$=l("h2",{id:"database",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#database"},"#"),e(" Database")],-1),ll=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"DB_CLIENT")]),l("td",null,[l("strong",null,"Required"),e(". What database client to use. One of "),l("code",null,"pg"),e(" or "),l("code",null,"postgres"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", "),l("code",null,"mssql"),e(", "),l("code",null,"sqlite3"),e(", "),l("code",null,"cockroachdb"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_HOST")]),l("td",null,[e("Database host. "),l("strong",null,"Required"),e(" when using "),l("code",null,"pg"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", or "),l("code",null,"mssql"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_PORT")]),l("td",null,[e("Database port. "),l("strong",null,"Required"),e(" when using "),l("code",null,"pg"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", or "),l("code",null,"mssql"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_DATABASE")]),l("td",null,[e("Database name. "),l("strong",null,"Required"),e(" when using "),l("code",null,"pg"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", or "),l("code",null,"mssql"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_USER")]),l("td",null,[e("Database user. "),l("strong",null,"Required"),e(" when using "),l("code",null,"pg"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", or "),l("code",null,"mssql"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_PASSWORD")]),l("td",null,[e("Database user\u2019s password. "),l("strong",null,"Required"),e(" when using "),l("code",null,"pg"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", or "),l("code",null,"mssql"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_FILENAME")]),l("td",null,[e("Where to read/write the SQLite database. "),l("strong",null,"Required"),e(" when using "),l("code",null,"sqlite3"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_CONNECTION_STRING")]),l("td",null,[e("When using "),l("code",null,"pg"),e(", you can submit a connection string instead of individual properties. Using this will ignore any of the other connection settings.")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_POOL__*")]),l("td",null,[e("Pooling settings. Passed on to "),l("a",{href:"https://github.com/vincit/tarn.js#usage",target:"_blank",rel:"noopener noreferrer"},[e("the "),l("code",null,"tarn.js")]),e(" library.")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_EXCLUDE_TABLES")]),l("td",null,"CSV of tables you want Directus to ignore completely"),l("td",null,[l("code",null,"spatial_ref_sys,sysdiagrams")])]),l("tr",null,[l("td",null,[l("code",null,"DB_CHARSET")]),l("td",null,"Charset/collation to use in the connection to MySQL/MariaDB"),l("td",null,[l("code",null,"UTF8_GENERAL_CI")])]),l("tr",null,[l("td",null,[l("code",null,"DB_VERSION")]),l("td",null,"Database version, in case you use the PostgreSQL adapter to connect a non-standard database. Not normally required."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_HEALTHCHECK_THRESHOLD")]),l("td",null,"Healthcheck timeout threshold in ms."),l("td",null,[l("code",null,"150")])])])],-1),el=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Additional Database Variables"),l("p",null,[e("All "),l("code",null,"DB_*"),e(" environment variables are passed to the "),l("code",null,"connection"),e(" configuration of a "),l("a",{href:"http://knexjs.org",target:"_blank",rel:"noopener noreferrer"},[l("code",null,"Knex"),e(" instance")]),e(". Based on your project\u2019s needs, you can extend the "),l("code",null,"DB_*"),e(" environment variables with any config you need to pass to the database instance.")])],-1),nl=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Pooling"),l("p",null,[e("All the "),l("code",null,"DB_POOL__"),e(" prefixed options are passed to "),l("a",{href:"https://github.com/vincit/tarn.js#usage",target:"_blank",rel:"noopener noreferrer"},[l("code",null,"tarn.js")]),e(" through "),l("a",{href:"http://knexjs.org#Installation-pooling",target:"_blank",rel:"noopener noreferrer"},"Knex")])],-1),tl=l("h2",{id:"security",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#security"},"#"),e(" Security")],-1),ol=l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])],-1),ul=l("tr",null,[l("td",null,[l("code",null,"KEY")]),l("td",null,"Unique identifier for the project."),l("td",null,"\u2013")],-1),sl=l("tr",null,[l("td",null,[l("code",null,"SECRET")]),l("td",null,"Secret string for the project."),l("td",null,"\u2013")],-1),al=l("tr",null,[l("td",null,[l("code",null,"ACCESS_TOKEN_TTL")]),l("td",null,"The duration that the access token is valid."),l("td",null,[l("code",null,"15m")])],-1),dl=l("tr",null,[l("td",null,[l("code",null,"REFRESH_TOKEN_TTL")]),l("td",null,"The duration that the refresh token is valid, and also how long users stay logged-in to the App."),l("td",null,[l("code",null,"7d")])],-1),rl=l("tr",null,[l("td",null,[l("code",null,"REFRESH_TOKEN_COOKIE_DOMAIN")]),l("td",null,"Which domain to use for the refresh cookie. Useful for development mode."),l("td",null,"\u2013")],-1),il=l("tr",null,[l("td",null,[l("code",null,"REFRESH_TOKEN_COOKIE_SECURE")]),l("td",null,"Whether or not to use a secure cookie for the refresh token in cookie mode."),l("td",null,[l("code",null,"false")])],-1),cl=l("tr",null,[l("td",null,[l("code",null,"REFRESH_TOKEN_COOKIE_SAME_SITE")]),l("td",null,[e("Value for "),l("code",null,"sameSite"),e(" in the refresh token cookie when in cookie mode.")]),l("td",null,[l("code",null,"lax")])],-1),hl=l("tr",null,[l("td",null,[l("code",null,"REFRESH_TOKEN_COOKIE_NAME")]),l("td",null,"Name of refresh token cookie ."),l("td",null,[l("code",null,"directus_refresh_token")])],-1),_l=l("tr",null,[l("td",null,[l("code",null,"LOGIN_STALL_TIME")]),l("td",null,"The duration in milliseconds that a login request will be stalled for, and it should be greater than the time taken for a login request with an invalid password"),l("td",null,[l("code",null,"500")])],-1),pl=l("td",null,[l("code",null,"PASSWORD_RESET_URL_ALLOW_LIST")],-1),fl=l("code",null,"reset_url",-1),ml=l("td",null,"\u2013",-1),El=l("td",null,[l("code",null,"USER_INVITE_URL_ALLOW_LIST")],-1),Al=l("code",null,"invite_url",-1),Tl=l("td",null,"\u2013",-1),gl=l("tr",null,[l("td",null,[l("code",null,"IP_TRUST_PROXY")]),l("td",null,[e("Settings for "),l("a",{href:"https://expressjs.com/en/guide/behind-proxies.html",target:"_blank",rel:"noopener noreferrer"},"express\u2019 trust proxy setting")]),l("td",null,"true")],-1),bl=l("tr",null,[l("td",null,[l("code",null,"IP_CUSTOM_HEADER")]),l("td",null,"What custom request header to use for the IP address"),l("td",null,"false")],-1),Rl=l("tr",null,[l("td",null,[l("code",null,"ASSETS_CONTENT_SECURITY_POLICY")]),l("td",null,[e("Custom overrides for the Content-Security-Policy header for the /assets endpoint. See "),l("a",{href:"https://helmetjs.github.io",target:"_blank",rel:"noopener noreferrer"},"helmet\u2019s documentation"),e(" for more information.")]),l("td",null,"\u2013")],-1),Sl=l("tr",null,[l("td",null,[l("code",null,"IMPORT_IP_DENY_LIST")]),l("td",null,[e("Deny importing files from these IP addresses. Use "),l("code",null,"0.0.0.0"),e(" for any local IP address")]),l("td",null,[l("code",null,"0.0.0.0")])],-1),Ol=l("tr",null,[l("td",null,[l("code",null,"CONTENT_SECURITY_POLICY_*")]),l("td",null,[e("Custom overrides for the Content-Security-Policy header. See "),l("a",{href:"https://helmetjs.github.io",target:"_blank",rel:"noopener noreferrer"},"helmet\u2019s documentation"),e(" for more information.")]),l("td",null,"\u2013")],-1),Il=l("tr",null,[l("td",null,[l("code",null,"HSTS_ENABLED")]),l("td",null,"Enable the Strict-Transport-Security policy header."),l("td",null,[l("code",null,"false")])],-1),Dl=l("tr",null,[l("td",null,[l("code",null,"HSTS_*")]),l("td",null,[e("Custom overrides for the Strict-Transport-Security header. See "),l("a",{href:"https://helmetjs.github.io",target:"_blank",rel:"noopener noreferrer"},"helmet\u2019s documentation"),e(" for more information.")]),l("td",null,"\u2013")],-1),yl=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Cookie Strictness"),l("p",null,[e("Browser are pretty strict when it comes to third-party cookies. If you\u2019re running into unexpected problems when running your project and API on different domains, make sure to verify your configuration for "),l("code",null,"REFRESH_TOKEN_COOKIE_NAME"),e(", "),l("code",null,"REFRESH_TOKEN_COOKIE_SECURE"),e(" and "),l("code",null,"REFRESH_TOKEN_COOKIE_SAME_SITE"),e(".")])],-1),Cl=l("h3",{id:"hashing",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#hashing"},"#"),e(" Hashing")],-1),Ll=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"HASH_MEMORY_COST")]),l("td",null,"How much memory to use when generating hashes, in KiB."),l("td",null,[l("code",null,"4096"),e(" (4 MiB)")])]),l("tr",null,[l("td",null,[l("code",null,"HASH_LENGTH")]),l("td",null,"The length of the hash function output in bytes."),l("td",null,[l("code",null,"32")])]),l("tr",null,[l("td",null,[l("code",null,"HASH_TIME_COST")]),l("td",null,"The amount of passes (iterations) used by the hash function. It increases hash strength at the cost of time required to compute."),l("td",null,[l("code",null,"3")])]),l("tr",null,[l("td",null,[l("code",null,"HASH_PARALLELISM")]),l("td",null,[e("The amount of threads to compute the hash on. Each thread has a memory pool with "),l("code",null,"HASH_MEMORY_COST"),e(" size.")]),l("td",null,[l("code",null,"1"),e(" (single thread)")])]),l("tr",null,[l("td",null,[l("code",null,"HASH_TYPE")]),l("td",null,[e("The variant of the hash function ("),l("code",null,"0"),e(": argon2d, "),l("code",null,"1"),e(": argon2i, or "),l("code",null,"2"),e(": argon2id).")]),l("td",null,[l("code",null,"2"),e(" (argon2id)")])]),l("tr",null,[l("td",null,[l("code",null,"HASH_ASSOCIATED_DATA")]),l("td",null,"An extra and optional non-secret value. The value will be included Base64 encoded in the parameters portion of the digest."),l("td",null,"\u2013")])])],-1),vl=l("code",null,"Hash",-1),Hl=l("p",null,[e("All "),l("code",null,"HASH_*"),e(" environment variable parameters are passed to the "),l("code",null,"argon2.hash"),e(" function. See the "),l("a",{href:"https://github.com/ranisalt/node-argon2/wiki/Options",target:"_blank",rel:"noopener noreferrer"},"node-argon2 library options page"),e(" for reference.")],-1),wl=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Memory Usage"),l("p",null,[e("Modifying "),l("code",null,"HASH_MEMORY_COST"),e(" and/or "),l("code",null,"HASH_PARALLELISM"),e(" will affect the amount of memory directus uses when computing hashes; each thread gets "),l("code",null,"HASH_MEMORY_COST"),e(" amount of memory, so the total additional memory will be these two values multiplied. This may cause out of memory errors, especially when running in containerized environments.")])],-1),Ul=l("h2",{id:"cors",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#cors"},"#"),e(" CORS")],-1),Pl=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"CORS_ENABLED")]),l("td",null,"Whether or not to enable the CORS headers."),l("td",null,[l("code",null,"false")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_ORIGIN")]),l("td",null,[e("Value for the "),l("code",null,"Access-Control-Allow-Origin"),e(" header. Use "),l("code",null,"true"),e(" to match the Origin header, or provide a domain or a CSV of domains for specific access")]),l("td",null,[l("code",null,"false")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_METHODS")]),l("td",null,[e("Value for the "),l("code",null,"Access-Control-Allow-Methods"),e(" header.")]),l("td",null,[l("code",null,"GET,POST,PATCH,DELETE")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_ALLOWED_HEADERS")]),l("td",null,[e("Value for the "),l("code",null,"Access-Control-Allow-Headers"),e(" header.")]),l("td",null,[l("code",null,"Content-Type,Authorization")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_EXPOSED_HEADERS")]),l("td",null,[e("Value for the "),l("code",null,"Access-Control-Expose-Headers"),e(" header.")]),l("td",null,[l("code",null,"Content-Range")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_CREDENTIALS")]),l("td",null,[e("Whether or not to send the "),l("code",null,"Access-Control-Allow-Credentials"),e(" header.")]),l("td",null,[l("code",null,"true")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_MAX_AGE")]),l("td",null,[e("Value for the "),l("code",null,"Access-Control-Max-Age"),e(" header.")]),l("td",null,[l("code",null,"18000")])])])],-1),Nl=l("h2",{id:"rate-limiting",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#rate-limiting"},"#"),e(" Rate Limiting")],-1),xl=l("p",null,[e("You can use the built-in rate-limiter to prevent users from hitting the API too much. Simply enabling the rate-limiter will set a default maximum of 50 requests per second, tracked in memory. Once you have multiple copies of Directus running under a load balancer, or your user base grows so much that memory is no longer a viable place to store the rate limiter information, you can use an external "),l("code",null,"memcache"),e(" or "),l("code",null,"redis"),e(" instance to store the rate limiter data.")],-1),Ml=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_ENABLED")]),l("td",null,"Whether or not to enable rate limiting on the API."),l("td",null,[l("code",null,"false")])]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_POINTS")]),l("td",null,"The amount of allowed hits per duration."),l("td",null,[l("code",null,"50")])]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_DURATION")]),l("td",null,"The time window in seconds in which the points are counted."),l("td",null,[l("code",null,"1")])]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_STORE")]),l("td",null,[e("Where to store the rate limiter counts. One of "),l("code",null,"memory"),e(", "),l("code",null,"redis"),e(", or "),l("code",null,"memcache"),e(".")]),l("td",null,[l("code",null,"memory")])]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_HEALTHCHECK_THRESHOLD")]),l("td",null,"Healthcheck timeout threshold in ms."),l("td",null,[l("code",null,"150")])])])],-1),Vl=l("p",null,[e("Based on the "),l("code",null,"RATE_LIMITER_STORE"),e(" used, you must also provide the following configurations:")],-1),jl=l("h3",{id:"memory",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#memory"},"#"),e(" Memory")],-1),kl=l("p",null,"No additional configuration required.",-1),Bl=l("h3",{id:"redis",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#redis"},"#"),e(" Redis")],-1),Gl=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS")]),l("td",null,[e("Redis connection string, e.g., "),l("code",null,"redis://:authpassword@127.0.0.1:6380/4")]),l("td",null,"\u2014")])])],-1),Fl=l("p",null,"Alternatively, you can provide the individual connection parameters:",-1),Wl=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS_HOST")]),l("td",null,[e("Hostname of the Redis instance, e.g., "),l("code",null,'"127.0.0.1"')]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS_PORT")]),l("td",null,[e("Port of the Redis instance, e.g., "),l("code",null,"6379")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS_USERNAME")]),l("td",null,[e("Username for your Redis instance, e.g., "),l("code",null,'"default"')]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS_PASSWORD")]),l("td",null,[e("Password for your Redis instance, e.g., "),l("code",null,'"yourRedisPassword"')]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS_DB")]),l("td",null,[e("Database of your Redis instance to connect, e.g., "),l("code",null,"1")]),l("td",null,"\u2013")])])],-1),ql=l("h3",{id:"memcache",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#memcache"},"#"),e(" Memcache")],-1),Kl=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_MEMCACHE")]),l("td",null,[e("Location of your memcache instance. You can use "),l("a",{href:"#environment-syntax-prefix"},[l("code",null,"array:"),e(" syntax")]),e(", e.g., "),l("code",null,"array:<instance-1>,<instance-2>"),e(" for multiple memcache instances.")]),l("td",null,"\u2014")])])],-1),Yl=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Additional Rate Limiter Variables"),l("p",null,[e("All "),l("code",null,"RATE_LIMITER_*"),e(" variables are passed directly to a "),l("code",null,"rate-limiter-flexible"),e(" instance. Depending on your project\u2019s needs, you can extend the above environment variables to configure any of "),l("a",{href:"https://github.com/animir/node-rate-limiter-flexible/wiki/Options",target:"_blank",rel:"noopener noreferrer"},[e("the "),l("code",null,"rate-limiter-flexible"),e(" options")]),e(".")])],-1),zl=l("h3",{id:"example%3A-basic",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#example%3A-basic"},"#"),e(" Example: Basic")],-1),Xl=l("pre",null,[l("code",null,`// 10 requests per 5 seconds
79
+ `)],-1),G=l("h2",{id:"environment-syntax-prefix",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#environment-syntax-prefix"},"#"),e(" Environment Syntax Prefix")],-1),F=l("p",null,[e("Directus will attempt to "),l("a",{href:"#type-casting-and-nesting"},"automatically type cast environment variables"),e(" based on context clues. If you have a specific need for a given type, you can tell Directus what type to use for the given value by prefixing the value with "),l("code",null,"{type}:"),e(". The following types are available:")],-1),W=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Syntax Prefix"),l("th",null,"Example"),l("th",null,"Output")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"string")]),l("td",null,[l("code",null,"string:value")]),l("td",null,[l("code",null,'"value"')])]),l("tr",null,[l("td",null,[l("code",null,"number")]),l("td",null,[l("code",null,"number:3306")]),l("td",null,[l("code",null,"3306")])]),l("tr",null,[l("td",null,[l("code",null,"regex")]),l("td",null,[l("code",null,"regex:\\.example\\.com$")]),l("td",null,[l("code",null,"/\\.example\\.com$/")])]),l("tr",null,[l("td",null,[l("code",null,"array")]),l("td",null,[l("code",null,"array:https://example.com,https://example2.com"),e(),l("br"),e(),l("code",null,"array:string:https://example.com,regex:\\.example3\\.com$")]),l("td",null,[l("code",null,'["https://example.com", "https://example2.com"]'),e(),l("br"),e(),l("code",null,'["https://example.com", "https://example2.com", /\\.example3\\.com$/]')])]),l("tr",null,[l("td",null,[l("code",null,"json")]),l("td",null,[l("code",null,'json:{"items": ["example1", "example2"]}')]),l("td",null,[l("code",null,'{"items": ["example1", "example2"]}')])])])],-1),q=l("hr",null,null,-1),K=l("h2",{id:"general",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#general"},"#"),e(" General")],-1),Y=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"CONFIG_PATH")]),l("td",null,[e("Where your config file is located. See "),l("a",{href:"#configuration-files"},"Configuration Files")]),l("td",null,[l("code",null,".env")])]),l("tr",null,[l("td",null,[l("code",null,"HOST")]),l("td",null,"IP or host the API listens on."),l("td",null,[l("code",null,"0.0.0.0")])]),l("tr",null,[l("td",null,[l("code",null,"PORT")]),l("td",null,"What port to run the API under."),l("td",null,[l("code",null,"8055")])]),l("tr",null,[l("td",null,[l("code",null,"PUBLIC_URL"),l("sup",null,"[1]")]),l("td",null,"URL where your API can be reached on the web."),l("td",null,[l("code",null,"/")])]),l("tr",null,[l("td",null,[l("code",null,"LOG_LEVEL")]),l("td",null,[e("What level of detail to log. One of "),l("code",null,"fatal"),e(", "),l("code",null,"error"),e(", "),l("code",null,"warn"),e(", "),l("code",null,"info"),e(", "),l("code",null,"debug"),e(", "),l("code",null,"trace"),e(" or "),l("code",null,"silent"),e(".")]),l("td",null,[l("code",null,"info")])]),l("tr",null,[l("td",null,[l("code",null,"LOG_STYLE")]),l("td",null,[e("Render the logs human readable (pretty) or as JSON. One of "),l("code",null,"pretty"),e(", "),l("code",null,"raw"),e(".")]),l("td",null,[l("code",null,"pretty")])]),l("tr",null,[l("td",null,[l("code",null,"MAX_PAYLOAD_SIZE")]),l("td",null,"Controls the maximum request body size. Accepts number of bytes, or human readable string."),l("td",null,[l("code",null,"1mb")])]),l("tr",null,[l("td",null,[l("code",null,"ROOT_REDIRECT")]),l("td",null,[e("Where to redirect to when navigating to "),l("code",null,"/"),e(". Accepts a relative path, absolute URL, or "),l("code",null,"false"),e(" to disable.")]),l("td",null,[l("code",null,"./admin")])]),l("tr",null,[l("td",null,[l("code",null,"SERVE_APP")]),l("td",null,[e("Whether or not to serve the Admin App under "),l("code",null,"/admin"),e(".")]),l("td",null,[l("code",null,"true")])]),l("tr",null,[l("td",null,[l("code",null,"GRAPHQL_INTROSPECTION")]),l("td",null,"Whether or not to enable GraphQL Introspection"),l("td",null,[l("code",null,"true")])]),l("tr",null,[l("td",null,[l("code",null,"MAX_RELATIONAL_DEPTH")]),l("td",null,[e("The maximum depth when filtering / querying relational fields, with a minimum value of "),l("code",null,"2"),e(".")]),l("td",null,[l("code",null,"10")])])])],-1),z=l("p",null,[l("sup",null,"[1]"),e(" The PUBLIC_URL value is used for things like OAuth redirects, forgot-password emails, and logos that needs to be publicly available on the internet.")],-1),X=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Additional Logger Variables"),l("p",null,[e("All "),l("code",null,"LOGGER_*"),e(" environment variables are passed to the "),l("code",null,"options"),e(" configuration of a "),l("a",{href:"https://github.com/pinojs/pino/blob/master/docs/api.md#options",target:"_blank",rel:"noopener noreferrer"},[l("code",null,"Pino"),e(" instance")]),e(". All "),l("code",null,"LOGGER_HTTP*"),e(" environment variables are passed to the "),l("code",null,"options"),e(" configuration of a "),l("a",{href:"https://github.com/pinojs/pino-http#api",target:"_blank",rel:"noopener noreferrer"},[l("code",null,"Pino-http"),e(" instance")]),e(". Based on your project\u2019s needs, you can extend the "),l("code",null,"LOGGER_*"),e(" environment variables with any config you need to pass to the logger instance. If a LOGGER_LEVELS key is added, these values will be passed to the logger frontmatter, as described "),l("a",{href:"https://github.com/pinojs/pino/blob/master/docs/help.md#mapping-pino-log-levels-to-google-cloud-logging-stackdriver-severity-levels",target:"_blank",rel:"noopener noreferrer"},"here"),e(" for example. The format for adding LEVELS values is: "),l("code",null,'LOGGER_LEVELS="trace:DEBUG,debug:DEBUG,info:INFO,warn:WARNING,error:ERROR,fatal:CRITICAL"')])],-1),Z=l("h2",{id:"server",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#server"},"#"),e(" Server")],-1),J=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"SERVER_KEEP_ALIVE_TIMEOUT")]),l("td",null,"Timeout in milliseconds for socket to be destroyed"),l("td",null,[l("a",{href:"https://github.com/nodejs/node/blob/master/doc/api/http.md#serverkeepalivetimeout",target:"_blank",rel:"noopener noreferrer"},"server.keepAliveTimeout")])]),l("tr",null,[l("td",null,[l("code",null,"SERVER_HEADERS_TIMEOUT")]),l("td",null,"Timeout in milliseconds to parse HTTP headers"),l("td",null,[l("a",{href:"https://github.com/nodejs/node/blob/master/doc/api/http.md#serverheaderstimeout",target:"_blank",rel:"noopener noreferrer"},"server.headersTimeout")])])])],-1),Q=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Additional Server Variables"),l("p",null,[e("All "),l("code",null,"SERVER_*"),e(" environment variables are merged with "),l("code",null,"server"),e(" instance properties created from "),l("a",{href:"https://github.com/nodejs/node/blob/master/doc/api/http.md#class-httpserver",target:"_blank",rel:"noopener noreferrer"},"http.Server"),e(". This allows to configure server behind a proxy, a load balancer, etc. Be careful to not override methods of this instance otherwise you may incur into unexpected behaviors.")])],-1),$=l("h2",{id:"database",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#database"},"#"),e(" Database")],-1),ll=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"DB_CLIENT")]),l("td",null,[l("strong",null,"Required"),e(". What database client to use. One of "),l("code",null,"pg"),e(" or "),l("code",null,"postgres"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", "),l("code",null,"mssql"),e(", "),l("code",null,"sqlite3"),e(", "),l("code",null,"cockroachdb"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_HOST")]),l("td",null,[e("Database host. "),l("strong",null,"Required"),e(" when using "),l("code",null,"pg"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", or "),l("code",null,"mssql"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_PORT")]),l("td",null,[e("Database port. "),l("strong",null,"Required"),e(" when using "),l("code",null,"pg"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", or "),l("code",null,"mssql"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_DATABASE")]),l("td",null,[e("Database name. "),l("strong",null,"Required"),e(" when using "),l("code",null,"pg"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", or "),l("code",null,"mssql"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_USER")]),l("td",null,[e("Database user. "),l("strong",null,"Required"),e(" when using "),l("code",null,"pg"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", or "),l("code",null,"mssql"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_PASSWORD")]),l("td",null,[e("Database user\u2019s password. "),l("strong",null,"Required"),e(" when using "),l("code",null,"pg"),e(", "),l("code",null,"mysql"),e(", "),l("code",null,"oracledb"),e(", or "),l("code",null,"mssql"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_FILENAME")]),l("td",null,[e("Where to read/write the SQLite database. "),l("strong",null,"Required"),e(" when using "),l("code",null,"sqlite3"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_CONNECTION_STRING")]),l("td",null,[e("When using "),l("code",null,"pg"),e(", you can submit a connection string instead of individual properties. Using this will ignore any of the other connection settings.")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_POOL__*")]),l("td",null,[e("Pooling settings. Passed on to "),l("a",{href:"https://github.com/vincit/tarn.js#usage",target:"_blank",rel:"noopener noreferrer"},[e("the "),l("code",null,"tarn.js")]),e(" library.")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_EXCLUDE_TABLES")]),l("td",null,"CSV of tables you want Directus to ignore completely"),l("td",null,[l("code",null,"spatial_ref_sys,sysdiagrams")])]),l("tr",null,[l("td",null,[l("code",null,"DB_CHARSET")]),l("td",null,"Charset/collation to use in the connection to MySQL/MariaDB"),l("td",null,[l("code",null,"UTF8_GENERAL_CI")])]),l("tr",null,[l("td",null,[l("code",null,"DB_VERSION")]),l("td",null,"Database version, in case you use the PostgreSQL adapter to connect a non-standard database. Not normally required."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"DB_HEALTHCHECK_THRESHOLD")]),l("td",null,"Healthcheck timeout threshold in ms."),l("td",null,[l("code",null,"150")])])])],-1),el=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Additional Database Variables"),l("p",null,[e("All "),l("code",null,"DB_*"),e(" environment variables are passed to the "),l("code",null,"connection"),e(" configuration of a "),l("a",{href:"http://knexjs.org",target:"_blank",rel:"noopener noreferrer"},[l("code",null,"Knex"),e(" instance")]),e(". Based on your project\u2019s needs, you can extend the "),l("code",null,"DB_*"),e(" environment variables with any config you need to pass to the database instance.")])],-1),nl=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Pooling"),l("p",null,[e("All the "),l("code",null,"DB_POOL__"),e(" prefixed options are passed to "),l("a",{href:"https://github.com/vincit/tarn.js#usage",target:"_blank",rel:"noopener noreferrer"},[l("code",null,"tarn.js")]),e(" through "),l("a",{href:"http://knexjs.org#Installation-pooling",target:"_blank",rel:"noopener noreferrer"},"Knex")])],-1),tl=l("h2",{id:"security",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#security"},"#"),e(" Security")],-1),ol=l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])],-1),ul=l("tr",null,[l("td",null,[l("code",null,"KEY")]),l("td",null,"Unique identifier for the project."),l("td",null,"\u2013")],-1),sl=l("tr",null,[l("td",null,[l("code",null,"SECRET")]),l("td",null,"Secret string for the project."),l("td",null,"\u2013")],-1),al=l("tr",null,[l("td",null,[l("code",null,"ACCESS_TOKEN_TTL")]),l("td",null,"The duration that the access token is valid."),l("td",null,[l("code",null,"15m")])],-1),dl=l("tr",null,[l("td",null,[l("code",null,"REFRESH_TOKEN_TTL")]),l("td",null,"The duration that the refresh token is valid, and also how long users stay logged-in to the App."),l("td",null,[l("code",null,"7d")])],-1),rl=l("tr",null,[l("td",null,[l("code",null,"REFRESH_TOKEN_COOKIE_DOMAIN")]),l("td",null,"Which domain to use for the refresh cookie. Useful for development mode."),l("td",null,"\u2013")],-1),il=l("tr",null,[l("td",null,[l("code",null,"REFRESH_TOKEN_COOKIE_SECURE")]),l("td",null,"Whether or not to use a secure cookie for the refresh token in cookie mode."),l("td",null,[l("code",null,"false")])],-1),cl=l("tr",null,[l("td",null,[l("code",null,"REFRESH_TOKEN_COOKIE_SAME_SITE")]),l("td",null,[e("Value for "),l("code",null,"sameSite"),e(" in the refresh token cookie when in cookie mode.")]),l("td",null,[l("code",null,"lax")])],-1),hl=l("tr",null,[l("td",null,[l("code",null,"REFRESH_TOKEN_COOKIE_NAME")]),l("td",null,"Name of refresh token cookie ."),l("td",null,[l("code",null,"directus_refresh_token")])],-1),_l=l("tr",null,[l("td",null,[l("code",null,"LOGIN_STALL_TIME")]),l("td",null,"The duration in milliseconds that a login request will be stalled for, and it should be greater than the time taken for a login request with an invalid password"),l("td",null,[l("code",null,"500")])],-1),pl=l("td",null,[l("code",null,"PASSWORD_RESET_URL_ALLOW_LIST")],-1),fl=l("code",null,"reset_url",-1),ml=l("td",null,"\u2013",-1),El=l("td",null,[l("code",null,"USER_INVITE_URL_ALLOW_LIST")],-1),Al=l("code",null,"invite_url",-1),Tl=l("td",null,"\u2013",-1),gl=l("tr",null,[l("td",null,[l("code",null,"IP_TRUST_PROXY")]),l("td",null,[e("Settings for "),l("a",{href:"https://expressjs.com/en/guide/behind-proxies.html",target:"_blank",rel:"noopener noreferrer"},"express\u2019 trust proxy setting")]),l("td",null,"true")],-1),Rl=l("tr",null,[l("td",null,[l("code",null,"IP_CUSTOM_HEADER")]),l("td",null,"What custom request header to use for the IP address"),l("td",null,"false")],-1),bl=l("tr",null,[l("td",null,[l("code",null,"ASSETS_CONTENT_SECURITY_POLICY")]),l("td",null,[e("Custom overrides for the Content-Security-Policy header for the /assets endpoint. See "),l("a",{href:"https://helmetjs.github.io",target:"_blank",rel:"noopener noreferrer"},"helmet\u2019s documentation"),e(" for more information.")]),l("td",null,"\u2013")],-1),Sl=l("tr",null,[l("td",null,[l("code",null,"IMPORT_IP_DENY_LIST")]),l("td",null,[e("Deny importing files from these IP addresses. Use "),l("code",null,"0.0.0.0"),e(" for any local IP address")]),l("td",null,[l("code",null,"0.0.0.0")])],-1),Il=l("tr",null,[l("td",null,[l("code",null,"CONTENT_SECURITY_POLICY_*")]),l("td",null,[e("Custom overrides for the Content-Security-Policy header. See "),l("a",{href:"https://helmetjs.github.io",target:"_blank",rel:"noopener noreferrer"},"helmet\u2019s documentation"),e(" for more information.")]),l("td",null,"\u2013")],-1),Ol=l("tr",null,[l("td",null,[l("code",null,"HSTS_ENABLED")]),l("td",null,"Enable the Strict-Transport-Security policy header."),l("td",null,[l("code",null,"false")])],-1),Dl=l("tr",null,[l("td",null,[l("code",null,"HSTS_*")]),l("td",null,[e("Custom overrides for the Strict-Transport-Security header. See "),l("a",{href:"https://helmetjs.github.io",target:"_blank",rel:"noopener noreferrer"},"helmet\u2019s documentation"),e(" for more information.")]),l("td",null,"\u2013")],-1),yl=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Cookie Strictness"),l("p",null,[e("Browser are pretty strict when it comes to third-party cookies. If you\u2019re running into unexpected problems when running your project and API on different domains, make sure to verify your configuration for "),l("code",null,"REFRESH_TOKEN_COOKIE_NAME"),e(", "),l("code",null,"REFRESH_TOKEN_COOKIE_SECURE"),e(" and "),l("code",null,"REFRESH_TOKEN_COOKIE_SAME_SITE"),e(".")])],-1),Ll=l("h3",{id:"hashing",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#hashing"},"#"),e(" Hashing")],-1),Cl=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"HASH_MEMORY_COST")]),l("td",null,"How much memory to use when generating hashes, in KiB."),l("td",null,[l("code",null,"4096"),e(" (4 MiB)")])]),l("tr",null,[l("td",null,[l("code",null,"HASH_LENGTH")]),l("td",null,"The length of the hash function output in bytes."),l("td",null,[l("code",null,"32")])]),l("tr",null,[l("td",null,[l("code",null,"HASH_TIME_COST")]),l("td",null,"The amount of passes (iterations) used by the hash function. It increases hash strength at the cost of time required to compute."),l("td",null,[l("code",null,"3")])]),l("tr",null,[l("td",null,[l("code",null,"HASH_PARALLELISM")]),l("td",null,[e("The amount of threads to compute the hash on. Each thread has a memory pool with "),l("code",null,"HASH_MEMORY_COST"),e(" size.")]),l("td",null,[l("code",null,"1"),e(" (single thread)")])]),l("tr",null,[l("td",null,[l("code",null,"HASH_TYPE")]),l("td",null,[e("The variant of the hash function ("),l("code",null,"0"),e(": argon2d, "),l("code",null,"1"),e(": argon2i, or "),l("code",null,"2"),e(": argon2id).")]),l("td",null,[l("code",null,"2"),e(" (argon2id)")])]),l("tr",null,[l("td",null,[l("code",null,"HASH_ASSOCIATED_DATA")]),l("td",null,"An extra and optional non-secret value. The value will be included Base64 encoded in the parameters portion of the digest."),l("td",null,"\u2013")])])],-1),vl=l("code",null,"Hash",-1),Hl=l("p",null,[e("All "),l("code",null,"HASH_*"),e(" environment variable parameters are passed to the "),l("code",null,"argon2.hash"),e(" function. See the "),l("a",{href:"https://github.com/ranisalt/node-argon2/wiki/Options",target:"_blank",rel:"noopener noreferrer"},"node-argon2 library options page"),e(" for reference.")],-1),wl=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Memory Usage"),l("p",null,[e("Modifying "),l("code",null,"HASH_MEMORY_COST"),e(" and/or "),l("code",null,"HASH_PARALLELISM"),e(" will affect the amount of memory directus uses when computing hashes; each thread gets "),l("code",null,"HASH_MEMORY_COST"),e(" amount of memory, so the total additional memory will be these two values multiplied. This may cause out of memory errors, especially when running in containerized environments.")])],-1),Ul=l("h2",{id:"cors",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#cors"},"#"),e(" CORS")],-1),Pl=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"CORS_ENABLED")]),l("td",null,"Whether or not to enable the CORS headers."),l("td",null,[l("code",null,"false")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_ORIGIN")]),l("td",null,[e("Value for the "),l("code",null,"Access-Control-Allow-Origin"),e(" header. Use "),l("code",null,"true"),e(" to match the Origin header, or provide a domain or a CSV of domains for specific access")]),l("td",null,[l("code",null,"false")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_METHODS")]),l("td",null,[e("Value for the "),l("code",null,"Access-Control-Allow-Methods"),e(" header.")]),l("td",null,[l("code",null,"GET,POST,PATCH,DELETE")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_ALLOWED_HEADERS")]),l("td",null,[e("Value for the "),l("code",null,"Access-Control-Allow-Headers"),e(" header.")]),l("td",null,[l("code",null,"Content-Type,Authorization")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_EXPOSED_HEADERS")]),l("td",null,[e("Value for the "),l("code",null,"Access-Control-Expose-Headers"),e(" header.")]),l("td",null,[l("code",null,"Content-Range")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_CREDENTIALS")]),l("td",null,[e("Whether or not to send the "),l("code",null,"Access-Control-Allow-Credentials"),e(" header.")]),l("td",null,[l("code",null,"true")])]),l("tr",null,[l("td",null,[l("code",null,"CORS_MAX_AGE")]),l("td",null,[e("Value for the "),l("code",null,"Access-Control-Max-Age"),e(" header.")]),l("td",null,[l("code",null,"18000")])])])],-1),Nl=l("h2",{id:"rate-limiting",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#rate-limiting"},"#"),e(" Rate Limiting")],-1),xl=l("p",null,[e("You can use the built-in rate-limiter to prevent users from hitting the API too much. Simply enabling the rate-limiter will set a default maximum of 50 requests per second, tracked in memory. Once you have multiple copies of Directus running under a load balancer, or your user base grows so much that memory is no longer a viable place to store the rate limiter information, you can use an external "),l("code",null,"memcache"),e(" or "),l("code",null,"redis"),e(" instance to store the rate limiter data.")],-1),Ml=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_ENABLED")]),l("td",null,"Whether or not to enable rate limiting on the API."),l("td",null,[l("code",null,"false")])]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_POINTS")]),l("td",null,"The amount of allowed hits per duration."),l("td",null,[l("code",null,"50")])]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_DURATION")]),l("td",null,"The time window in seconds in which the points are counted."),l("td",null,[l("code",null,"1")])]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_STORE")]),l("td",null,[e("Where to store the rate limiter counts. One of "),l("code",null,"memory"),e(", "),l("code",null,"redis"),e(", or "),l("code",null,"memcache"),e(".")]),l("td",null,[l("code",null,"memory")])]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_HEALTHCHECK_THRESHOLD")]),l("td",null,"Healthcheck timeout threshold in ms."),l("td",null,[l("code",null,"150")])])])],-1),Vl=l("p",null,[e("Based on the "),l("code",null,"RATE_LIMITER_STORE"),e(" used, you must also provide the following configurations:")],-1),jl=l("h3",{id:"memory",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#memory"},"#"),e(" Memory")],-1),kl=l("p",null,"No additional configuration required.",-1),Bl=l("h3",{id:"redis",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#redis"},"#"),e(" Redis")],-1),Gl=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS")]),l("td",null,[e("Redis connection string, e.g., "),l("code",null,"redis://:authpassword@127.0.0.1:6380/4")]),l("td",null,"\u2014")])])],-1),Fl=l("p",null,"Alternatively, you can provide the individual connection parameters:",-1),Wl=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS_HOST")]),l("td",null,[e("Hostname of the Redis instance, e.g., "),l("code",null,'"127.0.0.1"')]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS_PORT")]),l("td",null,[e("Port of the Redis instance, e.g., "),l("code",null,"6379")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS_USERNAME")]),l("td",null,[e("Username for your Redis instance, e.g., "),l("code",null,'"default"')]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS_PASSWORD")]),l("td",null,[e("Password for your Redis instance, e.g., "),l("code",null,'"yourRedisPassword"')]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_REDIS_DB")]),l("td",null,[e("Database of your Redis instance to connect, e.g., "),l("code",null,"1")]),l("td",null,"\u2013")])])],-1),ql=l("h3",{id:"memcache",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#memcache"},"#"),e(" Memcache")],-1),Kl=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"RATE_LIMITER_MEMCACHE")]),l("td",null,[e("Location of your memcache instance. You can use "),l("a",{href:"#environment-syntax-prefix"},[l("code",null,"array:"),e(" syntax")]),e(", e.g., "),l("code",null,"array:<instance-1>,<instance-2>"),e(" for multiple memcache instances.")]),l("td",null,"\u2014")])])],-1),Yl=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Additional Rate Limiter Variables"),l("p",null,[e("All "),l("code",null,"RATE_LIMITER_*"),e(" variables are passed directly to a "),l("code",null,"rate-limiter-flexible"),e(" instance. Depending on your project\u2019s needs, you can extend the above environment variables to configure any of "),l("a",{href:"https://github.com/animir/node-rate-limiter-flexible/wiki/Options",target:"_blank",rel:"noopener noreferrer"},[e("the "),l("code",null,"rate-limiter-flexible"),e(" options")]),e(".")])],-1),zl=l("h3",{id:"example%3A-basic",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#example%3A-basic"},"#"),e(" Example: Basic")],-1),Xl=l("pre",null,[l("code",null,`// 10 requests per 5 seconds
80
80
 
81
81
  RATE_LIMITER_POINTS="10"
82
82
  RATE_LIMITER_DURATION="5"
@@ -101,7 +101,7 @@ STORAGE_LOCAL_ROOT="./uploads"
101
101
  STORAGE_s3_DRIVER="s3" # Will not work, lowercase "s3" \u274C
102
102
  `)]),l("p",null,"but this will work:"),l("pre",null,[l("code",null,`STORAGE_LOCATIONS="s3"
103
103
  STORAGE_S3_DRIVER="s3" # Will work, "s3" is uppercased \u2705
104
- `)])],-1),Te=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_LOCATIONS")]),l("td",null,[e("A CSV of storage locations (e.g., "),l("code",null,"local,digitalocean,amazon"),e(") to use. You can use any names you\u2019d like for these keys.")]),l("td",null,[l("code",null,"local")])])])],-1),ge=l("p",null,"For each of the storage locations listed, you must provide the following configuration:",-1),be=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_DRIVER")]),l("td",null,[e("Which driver to use, either "),l("code",null,"local"),e(", "),l("code",null,"s3"),e(", "),l("code",null,"gcs"),e(", "),l("code",null,"azure")]),l("td")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ROOT")]),l("td",null,"Where to store the files on disk"),l("td",null,[l("code",null,"''")])]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_HEALTHCHECK_THRESHOLD")]),l("td",null,"Healthcheck timeout threshold in ms."),l("td",null,[l("code",null,"750")])])])],-1),Re=l("p",null,"Based on your configured driver, you must also provide the following configurations:",-1),Se=l("h3",{id:"local-(local)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#local-(local)"},"#"),e(" Local ("),l("code",null,"local"),e(")")],-1),Oe=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ROOT")]),l("td",null,"Where to store the files on disk"),l("td",null,"\u2013")])])],-1),Ie=l("h3",{id:"s3-(s3)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#s3-(s3)"},"#"),e(" S3 ("),l("code",null,"s3"),e(")")],-1),De=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_KEY")]),l("td",null,"User key"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_SECRET")]),l("td",null,"User secret"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_BUCKET")]),l("td",null,"S3 Bucket"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_REGION")]),l("td",null,"S3 Region"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ENDPOINT")]),l("td",null,"S3 Endpoint"),l("td",null,[l("code",null,"s3.amazonaws.com")])]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ACL")]),l("td",null,"S3 ACL"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_SERVER_SIDE_ENCRYPTION")]),l("td",null,"S3 Server Side Encryption"),l("td",null,"\u2013")])])],-1),ye=l("h3",{id:"azure-(azure)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#azure-(azure)"},"#"),e(" Azure ("),l("code",null,"azure"),e(")")],-1),Ce=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_CONTAINER_NAME")]),l("td",null,"Azure Storage container"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ACCOUNT_NAME")]),l("td",null,"Azure Storage account name"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ACCOUNT_KEY")]),l("td",null,"Azure Storage key"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ENDPOINT")]),l("td",null,"Azure URL"),l("td",null,[l("code",null,"https://{ACCOUNT_KEY}.blob.core.windows.net")])])])],-1),Le=l("h3",{id:"google-cloud-storage-(gcs)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#google-cloud-storage-(gcs)"},"#"),e(" Google Cloud Storage ("),l("code",null,"gcs"),e(")")],-1),ve=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_KEY_FILENAME")]),l("td",null,"Path to key file on disk"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_BUCKET")]),l("td",null,"Google Cloud Storage bucket"),l("td",null,"\u2013")])])],-1),He=l("h3",{id:"example%3A-multiple-storage-adapters",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#example%3A-multiple-storage-adapters"},"#"),e(" Example: Multiple Storage Adapters")],-1),we=l("p",null,"Below showcases a CSV of storage location names, with a config block for each:",-1),Ue=l("pre",null,[l("code",null,`STORAGE_LOCATIONS="local,aws"
104
+ `)])],-1),Te=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_LOCATIONS")]),l("td",null,[e("A CSV of storage locations (e.g., "),l("code",null,"local,digitalocean,amazon"),e(") to use. You can use any names you\u2019d like for these keys.")]),l("td",null,[l("code",null,"local")])])])],-1),ge=l("p",null,"For each of the storage locations listed, you must provide the following configuration:",-1),Re=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_DRIVER")]),l("td",null,[e("Which driver to use, either "),l("code",null,"local"),e(", "),l("code",null,"s3"),e(", "),l("code",null,"gcs"),e(", "),l("code",null,"azure")]),l("td")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ROOT")]),l("td",null,"Where to store the files on disk"),l("td",null,[l("code",null,"''")])]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_HEALTHCHECK_THRESHOLD")]),l("td",null,"Healthcheck timeout threshold in ms."),l("td",null,[l("code",null,"750")])])])],-1),be=l("p",null,"Based on your configured driver, you must also provide the following configurations:",-1),Se=l("h3",{id:"local-(local)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#local-(local)"},"#"),e(" Local ("),l("code",null,"local"),e(")")],-1),Ie=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ROOT")]),l("td",null,"Where to store the files on disk"),l("td",null,"\u2013")])])],-1),Oe=l("h3",{id:"s3-(s3)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#s3-(s3)"},"#"),e(" S3 ("),l("code",null,"s3"),e(")")],-1),De=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_KEY")]),l("td",null,"User key"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_SECRET")]),l("td",null,"User secret"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_BUCKET")]),l("td",null,"S3 Bucket"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_REGION")]),l("td",null,"S3 Region"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ENDPOINT")]),l("td",null,"S3 Endpoint"),l("td",null,[l("code",null,"s3.amazonaws.com")])]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ACL")]),l("td",null,"S3 ACL"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_SERVER_SIDE_ENCRYPTION")]),l("td",null,"S3 Server Side Encryption"),l("td",null,"\u2013")])])],-1),ye=l("h3",{id:"azure-(azure)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#azure-(azure)"},"#"),e(" Azure ("),l("code",null,"azure"),e(")")],-1),Le=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_CONTAINER_NAME")]),l("td",null,"Azure Storage container"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ACCOUNT_NAME")]),l("td",null,"Azure Storage account name"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ACCOUNT_KEY")]),l("td",null,"Azure Storage key"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_ENDPOINT")]),l("td",null,"Azure URL"),l("td",null,[l("code",null,"https://{ACCOUNT_KEY}.blob.core.windows.net")])])])],-1),Ce=l("h3",{id:"google-cloud-storage-(gcs)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#google-cloud-storage-(gcs)"},"#"),e(" Google Cloud Storage ("),l("code",null,"gcs"),e(")")],-1),ve=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_KEY_FILENAME")]),l("td",null,"Path to key file on disk"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"STORAGE_<LOCATION>_BUCKET")]),l("td",null,"Google Cloud Storage bucket"),l("td",null,"\u2013")])])],-1),He=l("h3",{id:"example%3A-multiple-storage-adapters",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#example%3A-multiple-storage-adapters"},"#"),e(" Example: Multiple Storage Adapters")],-1),we=l("p",null,"Below showcases a CSV of storage location names, with a config block for each:",-1),Ue=l("pre",null,[l("code",null,`STORAGE_LOCATIONS="local,aws"
105
105
 
106
106
  STORAGE_LOCAL_DRIVER="local"
107
107
  STORAGE_LOCAL_ROOT="local"
@@ -110,7 +110,7 @@ STORAGE_AWS_KEY="tp15c...510vk"
110
110
  STORAGE_AWS_SECRET="yk29b...b932n"
111
111
  STORAGE_AWS_REGION="us-east-2"
112
112
  STORAGE_AWS_BUCKET="my-files"
113
- `)],-1),Pe=l("h3",{id:"metadata",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#metadata"},"#"),e(" Metadata")],-1),Ne=l("p",null,[e("When uploading an image, Directus persists the "),l("em",null,"description, title, and tags"),e(" from available EXIF metadata. For security purposes, collection of additional metadata must be configured:")],-1),xe=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"FILE_METADATA_ALLOW_LIST")]),l("td",null,[e("A comma-separated list of metadata keys to collect during file upload. Use "),l("code",null,"*"),e(" for all"),l("sup",null,"[1]"),e(".")]),l("td",null,"ifd0.Make,ifd0.Model,exif.FNumber,exif.ExposureTime,exif.FocalLength,exif.ISO")])])],-1),Me=l("p",null,[l("sup",null,"[1]"),e(": Extracting all metadata might cause memory issues when the file has an unusually large set of metadata")],-1),Ve=l("h2",{id:"assets",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#assets"},"#"),e(" Assets")],-1),je=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"ASSETS_CACHE_TTL")]),l("td",null,[e("How long assets will be cached for in the browser. Sets the "),l("code",null,"max-age"),e(" value of the "),l("code",null,"Cache-Control"),e(" header.")]),l("td",null,[l("code",null,"30m")])]),l("tr",null,[l("td",null,[l("code",null,"ASSETS_TRANSFORM_MAX_CONCURRENT")]),l("td",null,"How many file transformations can be done simultaneously"),l("td",null,[l("code",null,"4")])]),l("tr",null,[l("td",null,[l("code",null,"ASSETS_TRANSFORM_IMAGE_MAX_DIMENSION")]),l("td",null,"The max pixel dimensions size (width/height) that is allowed to be transformed"),l("td",null,[l("code",null,"6000")])]),l("tr",null,[l("td",null,[l("code",null,"ASSETS_TRANSFORM_MAX_OPERATIONS")]),l("td",null,"The max number of transform operations that is allowed to be processed (excludes saved presets)"),l("td",null,[l("code",null,"5")])]),l("tr",null,[l("td",null,[l("code",null,"ASSETS_CONTENT_SECURITY_POLICY")]),l("td",null,[e("Custom overrides for the Content-Security-Policy header. See "),l("a",{href:"https://helmetjs.github.io",target:"_blank",rel:"noopener noreferrer"},"helmet\u2019s documentation"),e(" for more information.")]),l("td",null,"\u2013")])])],-1),ke=l("p",null,"Image transformations can be fairly heavy on memory usage. If you\u2019re using a system with 1GB or less available memory, we recommend lowering the allowed concurrent transformations to prevent you from overflowing your server.",-1),Be=l("h2",{id:"authentication",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#authentication"},"#"),e(" Authentication")],-1),Ge=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"AUTH_PROVIDERS")]),l("td",null,"A comma-separated list of auth providers."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_DISABLE_DEFAULT")]),l("td",null,"Disable the default auth provider"),l("td",null,[l("code",null,"false")])])])],-1),Fe=l("p",null,"For each auth provider you list, you must also provide the following configuration:",-1),We=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_DRIVER")]),l("td",null,[e("Which driver to use, either "),l("code",null,"local"),e(", "),l("code",null,"oauth2"),e(", "),l("code",null,"openid"),e(", "),l("code",null,"ldap")]),l("td",null,"\u2013")])])],-1),qe=l("p",null,"You may also be required to specify additional variables depending on the auth driver. See configuration details below.",-1),Ke=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Multiple Providers"),l("p",null,"Directus users can only authenticate using the auth provider they are created with. It is not possible to authenticate with multiple providers for the same user.")],-1),Ye=l("h3",{id:"local-(local)-1",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#local-(local)-1"},"#"),e(" Local ("),l("code",null,"local"),e(")")],-1),ze=l("p",null,"The default Directus email/password authentication flow.",-1),Xe=l("p",null,"No additional configuration required.",-1),Ze=l("h3",{id:"sso-(oauth2-and-openid)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#sso-(oauth2-and-openid)"},"#"),e(" SSO ("),l("code",null,"oauth2"),e(" and "),l("code",null,"openid"),e(")")],-1),Je=l("p",null,"Directus\u2019 SSO integrations provide powerful alternative ways to authenticate into your project. Directus will ask you to login on the external service, and return authenticated with a Directus account linked to that service.",-1),Qe=l("p",null,[e("For example, you can login to Directus using a GitHub account by creating an "),l("a",{href:"https://github.com/settings/developers",target:"_blank",rel:"noopener noreferrer"},"OAuth 2.0 app in GitHub"),e(" and adding the following configuration to Directus:")],-1),$e=l("pre",null,[l("code",null,`AUTH_PROVIDERS="github"
113
+ `)],-1),Pe=l("h3",{id:"metadata",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#metadata"},"#"),e(" Metadata")],-1),Ne=l("p",null,[e("When uploading an image, Directus persists the "),l("em",null,"description, title, and tags"),e(" from available EXIF metadata. For security purposes, collection of additional metadata must be configured:")],-1),xe=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"FILE_METADATA_ALLOW_LIST")]),l("td",null,[e("A comma-separated list of metadata keys to collect during file upload. Use "),l("code",null,"*"),e(" for all"),l("sup",null,"[1]"),e(".")]),l("td",null,"ifd0.Make,ifd0.Model,exif.FNumber,exif.ExposureTime,exif.FocalLength,exif.ISO")])])],-1),Me=l("p",null,[l("sup",null,"[1]"),e(": Extracting all metadata might cause memory issues when the file has an unusually large set of metadata")],-1),Ve=l("h2",{id:"assets",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#assets"},"#"),e(" Assets")],-1),je=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"ASSETS_CACHE_TTL")]),l("td",null,[e("How long assets will be cached for in the browser. Sets the "),l("code",null,"max-age"),e(" value of the "),l("code",null,"Cache-Control"),e(" header.")]),l("td",null,[l("code",null,"30m")])]),l("tr",null,[l("td",null,[l("code",null,"ASSETS_TRANSFORM_MAX_CONCURRENT")]),l("td",null,"How many file transformations can be done simultaneously"),l("td",null,[l("code",null,"4")])]),l("tr",null,[l("td",null,[l("code",null,"ASSETS_TRANSFORM_IMAGE_MAX_DIMENSION")]),l("td",null,"The max pixel dimensions size (width/height) that is allowed to be transformed"),l("td",null,[l("code",null,"6000")])]),l("tr",null,[l("td",null,[l("code",null,"ASSETS_TRANSFORM_MAX_OPERATIONS")]),l("td",null,"The max number of transform operations that is allowed to be processed (excludes saved presets)"),l("td",null,[l("code",null,"5")])]),l("tr",null,[l("td",null,[l("code",null,"ASSETS_CONTENT_SECURITY_POLICY")]),l("td",null,[e("Custom overrides for the Content-Security-Policy header. See "),l("a",{href:"https://helmetjs.github.io",target:"_blank",rel:"noopener noreferrer"},"helmet\u2019s documentation"),e(" for more information.")]),l("td",null,"\u2013")])])],-1),ke=l("p",null,"Image transformations can be fairly heavy on memory usage. If you\u2019re using a system with 1GB or less available memory, we recommend lowering the allowed concurrent transformations to prevent you from overflowing your server.",-1),Be=l("h2",{id:"authentication",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#authentication"},"#"),e(" Authentication")],-1),Ge=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"AUTH_PROVIDERS")]),l("td",null,"A comma-separated list of auth providers."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_DISABLE_DEFAULT")]),l("td",null,"Disable the default auth provider"),l("td",null,[l("code",null,"false")])])])],-1),Fe=l("p",null,"For each auth provider you list, you must also provide the following configuration:",-1),We=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_DRIVER")]),l("td",null,[e("Which driver to use, either "),l("code",null,"local"),e(", "),l("code",null,"oauth2"),e(", "),l("code",null,"openid"),e(", "),l("code",null,"ldap"),e(", "),l("code",null,"saml")]),l("td",null,"\u2013")])])],-1),qe=l("p",null,"You may also be required to specify additional variables depending on the auth driver. See configuration details below.",-1),Ke=l("div",{class:"tip hint"},[l("div",{class:"hint-title"},"Multiple Providers"),l("p",null,"Directus users can only authenticate using the auth provider they are created with. It is not possible to authenticate with multiple providers for the same user.")],-1),Ye=l("h3",{id:"local-(local)-1",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#local-(local)-1"},"#"),e(" Local ("),l("code",null,"local"),e(")")],-1),ze=l("p",null,"The default Directus email/password authentication flow.",-1),Xe=l("p",null,"No additional configuration required.",-1),Ze=l("h3",{id:"sso-(oauth2-and-openid)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#sso-(oauth2-and-openid)"},"#"),e(" SSO ("),l("code",null,"oauth2"),e(" and "),l("code",null,"openid"),e(")")],-1),Je=l("p",null,"Directus\u2019 SSO integrations provide powerful alternative ways to authenticate into your project. Directus will ask you to login on the external service, and return authenticated with a Directus account linked to that service.",-1),Qe=l("p",null,[e("For example, you can login to Directus using a GitHub account by creating an "),l("a",{href:"https://github.com/settings/developers",target:"_blank",rel:"noopener noreferrer"},"OAuth 2.0 app in GitHub"),e(" and adding the following configuration to Directus:")],-1),$e=l("pre",null,[l("code",null,`AUTH_PROVIDERS="github"
114
114
 
115
115
  AUTH_GITHUB_DRIVER="oauth2"
116
116
  AUTH_GITHUB_CLIENT_ID="99d3...c3c4"
@@ -118,7 +118,7 @@ AUTH_GITHUB_CLIENT_SECRET="34ae...f963"
118
118
  AUTH_GITHUB_AUTHORIZE_URL="https://github.com/login/oauth/authorize"
119
119
  AUTH_GITHUB_ACCESS_URL="https://github.com/login/oauth/access_token"
120
120
  AUTH_GITHUB_PROFILE_URL="https://api.github.com/user"
121
- `)],-1),ln=l("div",{class:"warning hint"},[l("div",{class:"hint-title"},"PUBLIC_URL"),l("p",null,[e("These flows rely on the "),l("code",null,"PUBLIC_URL"),e(" variable for redirecting. Ensure the variable is correctly configured.")])],-1),en=l("h3",{id:"oauth-2.0",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#oauth-2.0"},"#"),e(" OAuth 2.0")],-1),nn=l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])],-1),tn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_CLIENT_ID")]),l("td",null,"Client identifier for the OAuth provider."),l("td",null,"\u2013")],-1),on=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_CLIENT_SECRET")]),l("td",null,"Client secret for the OAuth provider."),l("td",null,"\u2013")],-1),un=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_SCOPE")]),l("td",null,"A white-space separated list of permissions to request."),l("td",null,[l("code",null,"email")])],-1),sn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_AUTHORIZE_URL")]),l("td",null,"Authorization page URL of the OAuth provider."),l("td",null,"\u2013")],-1),an=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_ACCESS_URL")]),l("td",null,"Access token URL of the OAuth provider."),l("td",null,"\u2013")],-1),dn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_PROFILE_URL")]),l("td",null,"User profile URL of the OAuth provider."),l("td",null,"\u2013")],-1),rn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_IDENTIFIER_KEY")]),l("td",null,[e("User profile identifier key "),l("sup",null,"[1]"),e(". Will default to "),l("code",null,"EMAIL_KEY"),e(".")]),l("td",null,"\u2013")],-1),cn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_EMAIL_KEY")]),l("td",null,"User profile email key."),l("td",null,[l("code",null,"email")])],-1),hn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_FIRST_NAME_KEY")]),l("td",null,"User profile first name key."),l("td",null,"\u2013")],-1),_n=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_LAST_NAME_KEY")]),l("td",null,"User profile last name key."),l("td",null,"\u2013")],-1),pn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_ALLOW_PUBLIC_REGISTRATION")]),l("td",null,"Automatically create accounts for authenticating users."),l("td",null,[l("code",null,"false")])],-1),fn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_DEFAULT_ROLE_ID")]),l("td",null,"A Directus role ID to assign created users."),l("td",null,"\u2013")],-1),mn=l("td",null,[l("code",null,"AUTH_<PROVIDER>_ICON")],-1),En=l("td",null,[l("code",null,"account_circle")],-1),An=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_LABEL")]),l("td",null,"Text to be presented on SSO button within App."),l("td",null,[l("code",null,"<PROVIDER>")])],-1),Tn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_PARAMS")]),l("td",null,"Custom query parameters applied to the authorization URL."),l("td",null,"\u2013")],-1),gn=l("p",null,[l("sup",null,"[1]"),e(" When authenticating, Directus will match the identifier value from the external user profile to a Directus users \u201CExternal Identifier\u201D.")],-1),bn=l("h3",{id:"openid",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#openid"},"#"),e(" OpenID")],-1),Rn=l("p",null,"OpenID is an authentication protocol built on OAuth 2.0, and should be preferred over standard OAuth 2.0 where possible.",-1),Sn=l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])],-1),On=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_CLIENT_ID")]),l("td",null,"Client identifier for the external service."),l("td",null,"\u2013")],-1),In=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_CLIENT_SECRET")]),l("td",null,"Client secret for the external service."),l("td",null,"\u2013")],-1),Dn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_SCOPE")]),l("td",null,"A white-space separated list of permissions to request."),l("td",null,[l("code",null,"openid profile email")])],-1),yn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_ISSUER_URL")]),l("td",null,[e("OpenID "),l("code",null,".well-known"),e(" discovery document URL of the external service.")]),l("td",null,"\u2013")],-1),Cn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_IDENTIFIER_KEY")]),l("td",null,[e("User profile identifier key "),l("sup",null,"[1]"),e(".")]),l("td",null,[l("code",null,"sub"),l("sup",null,"[2]")])],-1),Ln=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_ALLOW_PUBLIC_REGISTRATION")]),l("td",null,"Automatically create accounts for authenticating users."),l("td",null,[l("code",null,"false")])],-1),vn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_REQUIRE_VERIFIED_EMAIL")]),l("td",null,"Require created users to have a verified email address."),l("td",null,[l("code",null,"false")])],-1),Hn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_DEFAULT_ROLE_ID")]),l("td",null,"A Directus role ID to assign created users."),l("td",null,"\u2013")],-1),wn=l("td",null,[l("code",null,"AUTH_<PROVIDER>_ICON")],-1),Un=l("td",null,[l("code",null,"account_circle")],-1),Pn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_LABEL")]),l("td",null,"Text to be presented on SSO button within App."),l("td",null,[l("code",null,"<PROVIDER>")])],-1),Nn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_PARAMS")]),l("td",null,"Custom query parameters applied to the authorization URL."),l("td",null,"\u2013")],-1),xn=l("p",null,[l("sup",null,"[1]"),e(" When authenticating, Directus will match the identifier value from the external user profile to a Directus users \u201CExternal Identifier\u201D.")],-1),Mn=l("p",null,[l("sup",null,"[2]"),e(),l("code",null,"sub"),e(" represents a unique user identifier defined by the OpenID provider. For users not relying on "),l("code",null,"PUBLIC_REGISTRATION"),e(" it is recommended to use a human-readable identifier, such as "),l("code",null,"email"),e(".")],-1),Vn=l("h3",{id:"ldap-(ldap)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#ldap-(ldap)"},"#"),e(" LDAP ("),l("code",null,"ldap"),e(")")],-1),jn=l("p",null,"LDAP allows Active Directory users to authenticate and use Directus without having to be manually configured. User information and roles will be assigned from Active Directory.",-1),kn=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_CLIENT_URL")]),l("td",null,"LDAP connection URL."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_BIND_DN")]),l("td",null,[e("Bind user "),l("sup",null,"[1]"),e(" distinguished name.")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_BIND_PASSWORD")]),l("td",null,"Bind user password."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_USER_DN")]),l("td",null,"Directory path containing users."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_USER_ATTRIBUTE")]),l("td",null,"Attribute to identify the user."),l("td",null,[l("code",null,"cn")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_USER_SCOPE")]),l("td",null,[e("Scope of the user search, either "),l("code",null,"base"),e(", "),l("code",null,"one"),e(", "),l("code",null,"sub"),e(),l("sup",null,"[2]"),e(".")]),l("td",null,[l("code",null,"one")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_MAIL_ATTRIBUTE")]),l("td",null,"User email attribute."),l("td",null,[l("code",null,"mail")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_FIRST_NAME_ATTRIBUTE")]),l("td",null,"User first name attribute."),l("td",null,[l("code",null,"givenName")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_LAST_NAME_ATTRIBUTE")]),l("td",null,"User last name attribute."),l("td",null,[l("code",null,"sn")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_GROUP_DN"),l("sup",null,"[3]")]),l("td",null,"Directory path containing groups."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_GROUP_ATTRIBUTE")]),l("td",null,"Attribute to identify user as a member of a group."),l("td",null,[l("code",null,"member")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_GROUP_SCOPE")]),l("td",null,[e("Scope of the group search, either "),l("code",null,"base"),e(", "),l("code",null,"one"),e(", "),l("code",null,"sub"),e(),l("sup",null,"[2]"),e(".")]),l("td",null,[l("code",null,"one")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_DEFAULT_ROLE_ID")]),l("td",null,"A fallback Directus role ID to assign created users."),l("td",null,"\u2013")])])],-1),Bn=l("p",null,[l("sup",null,"[1]"),e(" The bind user must have permission to query users and groups to perform authentication. Anonymous binding can by achieved by setting an empty value for "),l("code",null,"BIND_DN"),e(" and "),l("code",null,"BIND_PASSWORD"),e(".")],-1),Gn=l("p",null,[l("sup",null,"[2]"),e(" The scope defines the following behaviors:")],-1),Fn=l("ul",null,[l("li",null,[l("code",null,"base"),e(": Limits the scope to a single object defined by the associated DN.")]),l("li",null,[l("code",null,"one"),e(": Searches all objects within the associated DN.")]),l("li",null,[l("code",null,"sub"),e(": Searches all objects and sub-objects within the associated DN.")])],-1),Wn=l("p",null,[l("sup",null,"[3]"),e(" If "),l("code",null,"GROUP_DN"),e(" is specified, the user\u2019s role will always be updated on authentication to a matching group configured in AD, or fallback to the "),l("code",null,"DEFAULT_ROLE_ID"),e(".")],-1),qn=l("h3",{id:"example%3A-ldap",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#example%3A-ldap"},"#"),e(" Example: LDAP")],-1),Kn=l("pre",null,[l("code",null,`AUTH_PROVIDERS="ldap"
121
+ `)],-1),ln=l("div",{class:"warning hint"},[l("div",{class:"hint-title"},"PUBLIC_URL"),l("p",null,[e("These flows rely on the "),l("code",null,"PUBLIC_URL"),e(" variable for redirecting. Ensure the variable is correctly configured.")])],-1),en=l("h3",{id:"oauth-2.0",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#oauth-2.0"},"#"),e(" OAuth 2.0")],-1),nn=l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])],-1),tn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_CLIENT_ID")]),l("td",null,"Client identifier for the OAuth provider."),l("td",null,"\u2013")],-1),on=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_CLIENT_SECRET")]),l("td",null,"Client secret for the OAuth provider."),l("td",null,"\u2013")],-1),un=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_SCOPE")]),l("td",null,"A white-space separated list of permissions to request."),l("td",null,[l("code",null,"email")])],-1),sn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_AUTHORIZE_URL")]),l("td",null,"Authorization page URL of the OAuth provider."),l("td",null,"\u2013")],-1),an=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_ACCESS_URL")]),l("td",null,"Access token URL of the OAuth provider."),l("td",null,"\u2013")],-1),dn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_PROFILE_URL")]),l("td",null,"User profile URL of the OAuth provider."),l("td",null,"\u2013")],-1),rn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_IDENTIFIER_KEY")]),l("td",null,[e("User profile identifier key "),l("sup",null,"[1]"),e(". Will default to "),l("code",null,"EMAIL_KEY"),e(".")]),l("td",null,"\u2013")],-1),cn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_EMAIL_KEY")]),l("td",null,"User profile email key."),l("td",null,[l("code",null,"email")])],-1),hn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_FIRST_NAME_KEY")]),l("td",null,"User profile first name key."),l("td",null,"\u2013")],-1),_n=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_LAST_NAME_KEY")]),l("td",null,"User profile last name key."),l("td",null,"\u2013")],-1),pn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_ALLOW_PUBLIC_REGISTRATION")]),l("td",null,"Automatically create accounts for authenticating users."),l("td",null,[l("code",null,"false")])],-1),fn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_DEFAULT_ROLE_ID")]),l("td",null,"A Directus role ID to assign created users."),l("td",null,"\u2013")],-1),mn=l("td",null,[l("code",null,"AUTH_<PROVIDER>_ICON")],-1),En=l("td",null,[l("code",null,"account_circle")],-1),An=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_LABEL")]),l("td",null,"Text to be presented on SSO button within App."),l("td",null,[l("code",null,"<PROVIDER>")])],-1),Tn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_PARAMS")]),l("td",null,"Custom query parameters applied to the authorization URL."),l("td",null,"\u2013")],-1),gn=l("p",null,[l("sup",null,"[1]"),e(" When authenticating, Directus will match the identifier value from the external user profile to a Directus users \u201CExternal Identifier\u201D.")],-1),Rn=l("h3",{id:"openid",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#openid"},"#"),e(" OpenID")],-1),bn=l("p",null,"OpenID is an authentication protocol built on OAuth 2.0, and should be preferred over standard OAuth 2.0 where possible.",-1),Sn=l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])],-1),In=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_CLIENT_ID")]),l("td",null,"Client identifier for the external service."),l("td",null,"\u2013")],-1),On=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_CLIENT_SECRET")]),l("td",null,"Client secret for the external service."),l("td",null,"\u2013")],-1),Dn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_SCOPE")]),l("td",null,"A white-space separated list of permissions to request."),l("td",null,[l("code",null,"openid profile email")])],-1),yn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_ISSUER_URL")]),l("td",null,[e("OpenID "),l("code",null,".well-known"),e(" discovery document URL of the external service.")]),l("td",null,"\u2013")],-1),Ln=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_IDENTIFIER_KEY")]),l("td",null,[e("User profile identifier key "),l("sup",null,"[1]"),e(".")]),l("td",null,[l("code",null,"sub"),l("sup",null,"[2]")])],-1),Cn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_ALLOW_PUBLIC_REGISTRATION")]),l("td",null,"Automatically create accounts for authenticating users."),l("td",null,[l("code",null,"false")])],-1),vn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_REQUIRE_VERIFIED_EMAIL")]),l("td",null,"Require created users to have a verified email address."),l("td",null,[l("code",null,"false")])],-1),Hn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_DEFAULT_ROLE_ID")]),l("td",null,"A Directus role ID to assign created users."),l("td",null,"\u2013")],-1),wn=l("td",null,[l("code",null,"AUTH_<PROVIDER>_ICON")],-1),Un=l("td",null,[l("code",null,"account_circle")],-1),Pn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_LABEL")]),l("td",null,"Text to be presented on SSO button within App."),l("td",null,[l("code",null,"<PROVIDER>")])],-1),Nn=l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_PARAMS")]),l("td",null,"Custom query parameters applied to the authorization URL."),l("td",null,"\u2013")],-1),xn=l("p",null,[l("sup",null,"[1]"),e(" When authenticating, Directus will match the identifier value from the external user profile to a Directus users \u201CExternal Identifier\u201D.")],-1),Mn=l("p",null,[l("sup",null,"[2]"),e(),l("code",null,"sub"),e(" represents a unique user identifier defined by the OpenID provider. For users not relying on "),l("code",null,"PUBLIC_REGISTRATION"),e(" it is recommended to use a human-readable identifier, such as "),l("code",null,"email"),e(".")],-1),Vn=l("h3",{id:"ldap-(ldap)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#ldap-(ldap)"},"#"),e(" LDAP ("),l("code",null,"ldap"),e(")")],-1),jn=l("p",null,"LDAP allows Active Directory users to authenticate and use Directus without having to be manually configured. User information and roles will be assigned from Active Directory.",-1),kn=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_CLIENT_URL")]),l("td",null,"LDAP connection URL."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_BIND_DN")]),l("td",null,[e("Bind user "),l("sup",null,"[1]"),e(" distinguished name.")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_BIND_PASSWORD")]),l("td",null,"Bind user password."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_USER_DN")]),l("td",null,"Directory path containing users."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_USER_ATTRIBUTE")]),l("td",null,"Attribute to identify the user."),l("td",null,[l("code",null,"cn")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_USER_SCOPE")]),l("td",null,[e("Scope of the user search, either "),l("code",null,"base"),e(", "),l("code",null,"one"),e(", "),l("code",null,"sub"),e(),l("sup",null,"[2]"),e(".")]),l("td",null,[l("code",null,"one")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_MAIL_ATTRIBUTE")]),l("td",null,"User email attribute."),l("td",null,[l("code",null,"mail")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_FIRST_NAME_ATTRIBUTE")]),l("td",null,"User first name attribute."),l("td",null,[l("code",null,"givenName")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_LAST_NAME_ATTRIBUTE")]),l("td",null,"User last name attribute."),l("td",null,[l("code",null,"sn")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_GROUP_DN"),l("sup",null,"[3]")]),l("td",null,"Directory path containing groups."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_GROUP_ATTRIBUTE")]),l("td",null,"Attribute to identify user as a member of a group."),l("td",null,[l("code",null,"member")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_GROUP_SCOPE")]),l("td",null,[e("Scope of the group search, either "),l("code",null,"base"),e(", "),l("code",null,"one"),e(", "),l("code",null,"sub"),e(),l("sup",null,"[2]"),e(".")]),l("td",null,[l("code",null,"one")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_DEFAULT_ROLE_ID")]),l("td",null,"A fallback Directus role ID to assign created users."),l("td",null,"\u2013")])])],-1),Bn=l("p",null,[l("sup",null,"[1]"),e(" The bind user must have permission to query users and groups to perform authentication. Anonymous binding can by achieved by setting an empty value for "),l("code",null,"BIND_DN"),e(" and "),l("code",null,"BIND_PASSWORD"),e(".")],-1),Gn=l("p",null,[l("sup",null,"[2]"),e(" The scope defines the following behaviors:")],-1),Fn=l("ul",null,[l("li",null,[l("code",null,"base"),e(": Limits the scope to a single object defined by the associated DN.")]),l("li",null,[l("code",null,"one"),e(": Searches all objects within the associated DN.")]),l("li",null,[l("code",null,"sub"),e(": Searches all objects and sub-objects within the associated DN.")])],-1),Wn=l("p",null,[l("sup",null,"[3]"),e(" If "),l("code",null,"GROUP_DN"),e(" is specified, the user\u2019s role will always be updated on authentication to a matching group configured in AD, or fallback to the "),l("code",null,"DEFAULT_ROLE_ID"),e(".")],-1),qn=l("h3",{id:"example%3A-ldap",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#example%3A-ldap"},"#"),e(" Example: LDAP")],-1),Kn=l("pre",null,[l("code",null,`AUTH_PROVIDERS="ldap"
122
122
 
123
123
  AUTH_LDAP_DRIVER="ldap"
124
124
  AUTH_LDAP_CLIENT_URL="ldap://ldap.directus.io"
@@ -126,7 +126,7 @@ AUTH_LDAP_BIND_DN="CN=Bind User,OU=Users,DC=ldap,DC=directus,DC=io"
126
126
  AUTH_LDAP_BIND_PASSWORD="p455w0rd"
127
127
  AUTH_LDAP_USER_DN="OU=Users,DC=ldap,DC=directus,DC=io"
128
128
  AUTH_LDAP_GROUP_DN="OU=Groups,DC=ldap,DC=directus,DC=io"
129
- `)],-1),Yn=l("h3",{id:"example%3A-multiple-auth-providers",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#example%3A-multiple-auth-providers"},"#"),e(" Example: Multiple Auth Providers")],-1),zn=l("p",null,"You can configure multiple providers for handling authentication in Directus. This allows for different options when logging in. To do this, provide a comma-separated list of provider names, and a config block for each provider:",-1),Xn=l("pre",null,[l("code",null,`AUTH_PROVIDERS="google,facebook"
129
+ `)],-1),Yn=l("h3",{id:"saml",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#saml"},"#"),e(" SAML")],-1),zn=l("p",null,"SAML is an open-standard, XML-based authentication framework for authentication and authorization between two entities without a password.",-1),Xn=l("ul",null,[l("li",null,[l("p",null,"Service provider (SP) agrees to trust the identity provider to authenticate users.")]),l("li",null,[l("p",null,"Identity provider (IdP) authenticates users and provides to service providers an authentication assertion that indicates a user has been authenticated.")])],-1),Zn=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_SP_metadata")]),l("td",null,"String containing XML metadata for service provider or URL to a remote URL"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_IDP_metadata")]),l("td",null,"String container XML metadata for identity provider or URL to a remote URL"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_ALLOW_PUBLIC_REGISTRATION")]),l("td",null,"Automatically create accounts for authenticating users."),l("td",null,[l("code",null,"false")])]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_DEFAULT_ROLE_ID")]),l("td",null,"A Directus role ID to assign created users."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_IDENTIFIER_KEY")]),l("td",null,[e("User profile identifier key "),l("sup",null,"[1]"),e(". Will default to "),l("code",null,"EMAIL_KEY"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"AUTH_<PROVIDER>_EMAIL_KEY")]),l("td",null,"User profile email key."),l("td",null,[l("code",null,"email")])])])],-1),Jn=l("p",null,[l("sup",null,"[1]"),e(" When authenticating, Directus will match the identifier value from the external user profile to a Directus users \u201CExternal Identifier\u201D.")],-1),Qn=l("p",null,[e("The "),l("code",null,"SP_metadata"),e(" and "),l("code",null,"IDP_metadata"),e(" variables should be set to the XML metadata provided by the service provider and identity provider respectively or can be set to a URL that will be fetched on startup.")],-1),$n=l("h3",{id:"example%3A-multiple-auth-providers",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#example%3A-multiple-auth-providers"},"#"),e(" Example: Multiple Auth Providers")],-1),lt=l("p",null,"You can configure multiple providers for handling authentication in Directus. This allows for different options when logging in. To do this, provide a comma-separated list of provider names, and a config block for each provider:",-1),et=l("pre",null,[l("code",null,`AUTH_PROVIDERS="google,facebook"
130
130
 
131
131
  AUTH_GOOGLE_DRIVER="openid"
132
132
  AUTH_GOOGLE_CLIENT_ID="830d...29sd"
@@ -144,4 +144,4 @@ AUTH_FACEBOOK_ACCESS_URL="https://graph.facebook.com/oauth/access_token"
144
144
  AUTH_FACEBOOK_PROFILE_URL="https://graph.facebook.com/me?fields=email"
145
145
  AUTH_FACEBOOK_ICON="facebook"
146
146
  AUTH_FACEBOOK_LABEL="Facebook"
147
- `)],-1),Zn=l("h2",{id:"extensions",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#extensions"},"#"),e(" Extensions")],-1),Jn=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EXTENSIONS_PATH")]),l("td",null,"Path to your local extensions folder."),l("td",null,[l("code",null,"./extensions")])]),l("tr",null,[l("td",null,[l("code",null,"EXTENSIONS_AUTO_RELOAD")]),l("td",null,"Automatically reload extensions when they have changed."),l("td",null,[l("code",null,"false")])])])],-1),Qn=l("h2",{id:"messenger",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#messenger"},"#"),e(" Messenger")],-1),$n=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"MESSENGER_STORE")]),l("td",null,[e("One of "),l("code",null,"memory"),e(", "),l("code",null,"redis"),l("sup",null,"[1]")]),l("td",null,[l("code",null,"memory")])]),l("tr",null,[l("td",null,[l("code",null,"MESSENGER_NAMESPACE")]),l("td",null,"How to scope the channels in Redis"),l("td",null,[l("code",null,"directus")])]),l("tr",null,[l("td",null,[l("code",null,"MESSENGER_REDIS_*")]),l("td",null,"The Redis configuration for the pub/sub connection"),l("td",null,"\u2013")])])],-1),lt=l("p",null,[l("sup",null,"[1]"),e(),l("code",null,"redis"),e(" should be used in load-balanced installations of Directus")],-1),et=l("h2",{id:"email",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#email"},"#"),e(" Email")],-1),nt=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_VERIFY_SETUP")]),l("td",null,"Check if email setup is properly configured."),l("td",null,[l("code",null,"true")])]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_FROM")]),l("td",null,"Email address from which emails are sent."),l("td",null,[l("code",null,"no-reply@directus.io")])]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_TRANSPORT")]),l("td",null,[e("What to use to send emails. One of "),l("code",null,"sendmail"),e(", "),l("code",null,"smtp"),e(", "),l("code",null,"mailgun"),e(", "),l("code",null,"sendgrid"),e(", "),l("code",null,"ses"),e(".")]),l("td",null,[l("code",null,"sendmail")])])])],-1),tt=l("p",null,[e("Based on the "),l("code",null,"EMAIL_TRANSPORT"),e(" used, you must also provide the following configurations:")],-1),ot=l("h3",{id:"sendmail-(sendmail)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#sendmail-(sendmail)"},"#"),e(" Sendmail ("),l("code",null,"sendmail"),e(")")],-1),ut=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_SENDMAIL_NEW_LINE")]),l("td",null,"What new line style to use in sendmail."),l("td",null,[l("code",null,"unix")])]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SENDMAIL_PATH")]),l("td",null,"Path to your sendmail executable."),l("td",null,[l("code",null,"/usr/sbin/sendmail")])])])],-1),st=l("h3",{id:"smtp-(smtp)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#smtp-(smtp)"},"#"),e(" SMTP ("),l("code",null,"smtp"),e(")")],-1),at=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_NAME")]),l("td",null,"SMTP Name"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_HOST")]),l("td",null,"SMTP Host"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_PORT")]),l("td",null,"SMTP Port"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_USER")]),l("td",null,"SMTP User"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_PASSWORD")]),l("td",null,"SMTP Password"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_POOL")]),l("td",null,"Use SMTP pooling"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_SECURE")]),l("td",null,"Enable TLS"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_IGNORE_TLS")]),l("td",null,"Ignore TLS"),l("td",null,"\u2013")])])],-1),dt=l("h3",{id:"mailgun-(mailgun)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#mailgun-(mailgun)"},"#"),e(" Mailgun ("),l("code",null,"mailgun"),e(")")],-1),rt=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_MAILGUN_API_KEY")]),l("td",null,"Your Mailgun API key."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_MAILGUN_DOMAIN")]),l("td",null,[e("A domain from "),l("a",{href:"https://app.mailgun.com/app/sending/domains",target:"_blank",rel:"noopener noreferrer"},"your Mailgun account")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_MAILGUN_HOST")]),l("td",null,"Allows you to specify a custom host."),l("td",null,[l("code",null,"api.mailgun.net")])])])],-1),it=l("h3",{id:"sendgrid-(sendgrid)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#sendgrid-(sendgrid)"},"#"),e(" SendGrid ("),l("code",null,"sendgrid"),e(")")],-1),ct=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_SENDGRID_API_KEY")]),l("td",null,"Your SendGrid API key."),l("td",null,"\u2013")])])],-1),ht=l("h3",{id:"aws-ses-(ses)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#aws-ses-(ses)"},"#"),e(" AWS SES ("),l("code",null,"ses"),e(")")],-1),_t=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_SES_CREDENTIALS__ACCESS_KEY_ID")]),l("td",null,"Your AWS SES access key. ID."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SES_CREDENTIALS__SECRET_ACCESS_KEY")]),l("td",null,"Your AWS SES secret key."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SES_REGION")]),l("td",null,"Your AWS SES region."),l("td",null,"\u2013")])])],-1),pt=l("h2",{id:"admin-account",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#admin-account"},"#"),e(" Admin Account")],-1),ft=l("p",null,[e("If you\u2019re relying on Docker and/or the "),l("code",null,"directus bootstrap"),e(" CLI command, you can pass the following two environment variables to automatically configure the first user:")],-1),mt=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"ADMIN_EMAIL")]),l("td",null,[e("The email address of the first user that\u2019s automatically created when using "),l("code",null,"directus bootstrap"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"ADMIN_PASSWORD")]),l("td",null,[e("The password of the first user that\u2019s automatically created when using "),l("code",null,"directus bootstrap"),e(".")]),l("td",null,"\u2013")])])],-1),Et=l("h2",{id:"telemetry",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#telemetry"},"#"),e(" Telemetry")],-1),At=l("p",null,"To more accurately gauge the frequency of installation, version fragmentation, and general size of the userbase, Directus collects little and anonymized data about your environment. You can easily opt-out with the following environment variable:",-1),Tt=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"TELEMETRY")]),l("td",null,"Allow Directus to collect anonymized data about your environment."),l("td",null,[l("code",null,"true")])])])],-1),gt=l("h2",{id:"limits-%26-optimizations",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#limits-%26-optimizations"},"#"),e(" Limits & Optimizations")],-1),bt=l("p",null,"Allows you to configure hard technical limits, to prevent abuse and optimize for your particular server environment.",-1),Rt=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"RELATIONAL_BATCH_SIZE")]),l("td",null,"How many rows are read into memory at a time when constructing nested relational datasets"),l("td",null,"25000")]),l("tr",null,[l("td",null,[l("code",null,"EXPORT_BATCH_SIZE")]),l("td",null,"How many rows are read into memory at a time when constructing exports"),l("td",null,"5000")])])],-1),yt="Configuration Options",Ct=!1,Lt="Environment variables are used for all configuration within a Directus project. These variables can be defined in a number of ways, which we cover below.",vt="28 min read",Ht={__name:"config-options",setup(St,{expose:a}){const u={title:"Configuration Options",modularExtension:!1,description:"Environment variables are used for all configuration within a Directus project. These variables can be defined in a number of ways, which we cover below.",readTime:"28 min read"};return a({frontmatter:u}),(Ot,It)=>{const t=s("router-link"),d=s("docs-wrapper");return r(),i(d,{frontmatter:u},{default:n(()=>[l("div",c,[h,_,p,f,m,E,A,T,g,b,R,S,O,I,D,y,C,L,v,H,w,U,P,N,x,M,V,j,k,B,G,F,W,q,K,Y,z,X,Z,J,Q,$,ll,el,nl,tl,l("table",null,[ol,l("tbody",null,[ul,sl,al,dl,rl,il,cl,hl,_l,l("tr",null,[pl,l("td",null,[e("List of URLs that can be used "),o(t,{to:"/docs/reference/authentication#request-password-reset"},{default:n(()=>[e("as "),fl,e(" in /password/request")]),_:1})]),ml]),l("tr",null,[El,l("td",null,[e("List of URLs that can be used "),o(t,{to:"/docs/reference/system/users#invite-a-new-user"},{default:n(()=>[e("as "),Al,e(" in /users/invite")]),_:1})]),Tl]),gl,bl,Rl,Sl,Ol,Il,Dl])]),yl,Cl,Ll,l("p",null,[e("Argon2\u2019s hashing function is used by Directus for three purposes: 1) hashing user passwords, 2) generating hashes for the "),vl,e(" field type in collections, and 3) the "),o(t,{to:"/docs/reference/system/utilities#generate-a-hash"},{default:n(()=>[e("generate a hash API endpoint")]),_:1}),e(".")]),Hl,wl,Ul,Pl,Nl,xl,Ml,Vl,jl,kl,Bl,Gl,Fl,Wl,ql,Kl,Yl,zl,Xl,Zl,Jl,Ql,$l,le,ee,ne,te,oe,ue,se,ae,de,re,ie,ce,he,_e,pe,fe,me,Ee,Ae,Te,ge,be,Re,Se,Oe,Ie,De,ye,Ce,Le,ve,He,we,Ue,Pe,Ne,xe,Me,Ve,je,ke,Be,Ge,Fe,We,qe,Ke,Ye,ze,Xe,Ze,Je,Qe,$e,l("p",null,[e("More example SSO configurations "),o(t,{to:"/docs/self-hosted/sso-examples"},{default:n(()=>[e("can be found here")]),_:1}),e(".")]),ln,en,l("table",null,[nn,l("tbody",null,[tn,on,un,sn,an,dn,rn,cn,hn,_n,pn,fn,l("tr",null,[mn,l("td",null,[e("SVG icon to display with the login link. "),o(t,{to:"/docs/getting-started/glossary#icons"},{default:n(()=>[e("See options here")]),_:1}),e(".")]),En]),An,Tn])]),gn,bn,Rn,l("table",null,[Sn,l("tbody",null,[On,In,Dn,yn,Cn,Ln,vn,Hn,l("tr",null,[wn,l("td",null,[e("SVG icon to display with the login link. "),o(t,{to:"/docs/getting-started/glossary#icons"},{default:n(()=>[e("See options here")]),_:1}),e(".")]),Un]),Pn,Nn])]),xn,Mn,Vn,jn,kn,Bn,Gn,Fn,Wn,qn,Kn,Yn,zn,Xn,Zn,Jn,Qn,$n,lt,et,nt,tt,ot,ut,st,at,dt,rt,it,ct,ht,_t,pt,ft,mt,Et,At,Tt,gt,bt,Rt])]),_:1})}}};export{Ht as default,Lt as description,Ct as modularExtension,vt as readTime,yt as title};
147
+ `)],-1),nt=l("h2",{id:"extensions",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#extensions"},"#"),e(" Extensions")],-1),tt=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EXTENSIONS_PATH")]),l("td",null,"Path to your local extensions folder."),l("td",null,[l("code",null,"./extensions")])]),l("tr",null,[l("td",null,[l("code",null,"EXTENSIONS_AUTO_RELOAD")]),l("td",null,"Automatically reload extensions when they have changed."),l("td",null,[l("code",null,"false")])])])],-1),ot=l("h2",{id:"messenger",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#messenger"},"#"),e(" Messenger")],-1),ut=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"MESSENGER_STORE")]),l("td",null,[e("One of "),l("code",null,"memory"),e(", "),l("code",null,"redis"),l("sup",null,"[1]")]),l("td",null,[l("code",null,"memory")])]),l("tr",null,[l("td",null,[l("code",null,"MESSENGER_NAMESPACE")]),l("td",null,"How to scope the channels in Redis"),l("td",null,[l("code",null,"directus")])]),l("tr",null,[l("td",null,[l("code",null,"MESSENGER_REDIS_*")]),l("td",null,"The Redis configuration for the pub/sub connection"),l("td",null,"\u2013")])])],-1),st=l("p",null,[l("sup",null,"[1]"),e(),l("code",null,"redis"),e(" should be used in load-balanced installations of Directus")],-1),at=l("h2",{id:"email",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#email"},"#"),e(" Email")],-1),dt=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_VERIFY_SETUP")]),l("td",null,"Check if email setup is properly configured."),l("td",null,[l("code",null,"true")])]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_FROM")]),l("td",null,"Email address from which emails are sent."),l("td",null,[l("code",null,"no-reply@directus.io")])]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_TRANSPORT")]),l("td",null,[e("What to use to send emails. One of "),l("code",null,"sendmail"),e(", "),l("code",null,"smtp"),e(", "),l("code",null,"mailgun"),e(", "),l("code",null,"sendgrid"),e(", "),l("code",null,"ses"),e(".")]),l("td",null,[l("code",null,"sendmail")])])])],-1),rt=l("p",null,[e("Based on the "),l("code",null,"EMAIL_TRANSPORT"),e(" used, you must also provide the following configurations:")],-1),it=l("h3",{id:"sendmail-(sendmail)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#sendmail-(sendmail)"},"#"),e(" Sendmail ("),l("code",null,"sendmail"),e(")")],-1),ct=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_SENDMAIL_NEW_LINE")]),l("td",null,"What new line style to use in sendmail."),l("td",null,[l("code",null,"unix")])]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SENDMAIL_PATH")]),l("td",null,"Path to your sendmail executable."),l("td",null,[l("code",null,"/usr/sbin/sendmail")])])])],-1),ht=l("h3",{id:"smtp-(smtp)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#smtp-(smtp)"},"#"),e(" SMTP ("),l("code",null,"smtp"),e(")")],-1),_t=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_NAME")]),l("td",null,"SMTP Name"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_HOST")]),l("td",null,"SMTP Host"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_PORT")]),l("td",null,"SMTP Port"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_USER")]),l("td",null,"SMTP User"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_PASSWORD")]),l("td",null,"SMTP Password"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_POOL")]),l("td",null,"Use SMTP pooling"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_SECURE")]),l("td",null,"Enable TLS"),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SMTP_IGNORE_TLS")]),l("td",null,"Ignore TLS"),l("td",null,"\u2013")])])],-1),pt=l("h3",{id:"mailgun-(mailgun)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#mailgun-(mailgun)"},"#"),e(" Mailgun ("),l("code",null,"mailgun"),e(")")],-1),ft=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_MAILGUN_API_KEY")]),l("td",null,"Your Mailgun API key."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_MAILGUN_DOMAIN")]),l("td",null,[e("A domain from "),l("a",{href:"https://app.mailgun.com/app/sending/domains",target:"_blank",rel:"noopener noreferrer"},"your Mailgun account")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_MAILGUN_HOST")]),l("td",null,"Allows you to specify a custom host."),l("td",null,[l("code",null,"api.mailgun.net")])])])],-1),mt=l("h3",{id:"sendgrid-(sendgrid)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#sendgrid-(sendgrid)"},"#"),e(" SendGrid ("),l("code",null,"sendgrid"),e(")")],-1),Et=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_SENDGRID_API_KEY")]),l("td",null,"Your SendGrid API key."),l("td",null,"\u2013")])])],-1),At=l("h3",{id:"aws-ses-(ses)",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#aws-ses-(ses)"},"#"),e(" AWS SES ("),l("code",null,"ses"),e(")")],-1),Tt=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"EMAIL_SES_CREDENTIALS__ACCESS_KEY_ID")]),l("td",null,"Your AWS SES access key. ID."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SES_CREDENTIALS__SECRET_ACCESS_KEY")]),l("td",null,"Your AWS SES secret key."),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"EMAIL_SES_REGION")]),l("td",null,"Your AWS SES region."),l("td",null,"\u2013")])])],-1),gt=l("h2",{id:"admin-account",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#admin-account"},"#"),e(" Admin Account")],-1),Rt=l("p",null,[e("If you\u2019re relying on Docker and/or the "),l("code",null,"directus bootstrap"),e(" CLI command, you can pass the following two environment variables to automatically configure the first user:")],-1),bt=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"ADMIN_EMAIL")]),l("td",null,[e("The email address of the first user that\u2019s automatically created when using "),l("code",null,"directus bootstrap"),e(".")]),l("td",null,"\u2013")]),l("tr",null,[l("td",null,[l("code",null,"ADMIN_PASSWORD")]),l("td",null,[e("The password of the first user that\u2019s automatically created when using "),l("code",null,"directus bootstrap"),e(".")]),l("td",null,"\u2013")])])],-1),St=l("h2",{id:"telemetry",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#telemetry"},"#"),e(" Telemetry")],-1),It=l("p",null,"To more accurately gauge the frequency of installation, version fragmentation, and general size of the userbase, Directus collects little and anonymized data about your environment. You can easily opt-out with the following environment variable:",-1),Ot=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"TELEMETRY")]),l("td",null,"Allow Directus to collect anonymized data about your environment."),l("td",null,[l("code",null,"true")])])])],-1),Dt=l("h2",{id:"limits-%26-optimizations",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#limits-%26-optimizations"},"#"),e(" Limits & Optimizations")],-1),yt=l("p",null,"Allows you to configure hard technical limits, to prevent abuse and optimize for your particular server environment.",-1),Lt=l("table",null,[l("thead",null,[l("tr",null,[l("th",null,"Variable"),l("th",null,"Description"),l("th",null,"Default Value")])]),l("tbody",null,[l("tr",null,[l("td",null,[l("code",null,"RELATIONAL_BATCH_SIZE")]),l("td",null,"How many rows are read into memory at a time when constructing nested relational datasets"),l("td",null,"25000")]),l("tr",null,[l("td",null,[l("code",null,"EXPORT_BATCH_SIZE")]),l("td",null,"How many rows are read into memory at a time when constructing exports"),l("td",null,"5000")])])],-1),Ut="Configuration Options",Pt=!1,Nt="Environment variables are used for all configuration within a Directus project. These variables can be defined in a number of ways, which we cover below.",xt="28 min read",Mt={__name:"config-options",setup(Ct,{expose:a}){const u={title:"Configuration Options",modularExtension:!1,description:"Environment variables are used for all configuration within a Directus project. These variables can be defined in a number of ways, which we cover below.",readTime:"28 min read"};return a({frontmatter:u}),(vt,Ht)=>{const t=s("router-link"),d=s("docs-wrapper");return r(),i(d,{frontmatter:u},{default:n(()=>[l("div",c,[h,_,p,f,m,E,A,T,g,R,b,S,I,O,D,y,L,C,v,H,w,U,P,N,x,M,V,j,k,B,G,F,W,q,K,Y,z,X,Z,J,Q,$,ll,el,nl,tl,l("table",null,[ol,l("tbody",null,[ul,sl,al,dl,rl,il,cl,hl,_l,l("tr",null,[pl,l("td",null,[e("List of URLs that can be used "),o(t,{to:"/docs/reference/authentication#request-password-reset"},{default:n(()=>[e("as "),fl,e(" in /password/request")]),_:1})]),ml]),l("tr",null,[El,l("td",null,[e("List of URLs that can be used "),o(t,{to:"/docs/reference/system/users#invite-a-new-user"},{default:n(()=>[e("as "),Al,e(" in /users/invite")]),_:1})]),Tl]),gl,Rl,bl,Sl,Il,Ol,Dl])]),yl,Ll,Cl,l("p",null,[e("Argon2\u2019s hashing function is used by Directus for three purposes: 1) hashing user passwords, 2) generating hashes for the "),vl,e(" field type in collections, and 3) the "),o(t,{to:"/docs/reference/system/utilities#generate-a-hash"},{default:n(()=>[e("generate a hash API endpoint")]),_:1}),e(".")]),Hl,wl,Ul,Pl,Nl,xl,Ml,Vl,jl,kl,Bl,Gl,Fl,Wl,ql,Kl,Yl,zl,Xl,Zl,Jl,Ql,$l,le,ee,ne,te,oe,ue,se,ae,de,re,ie,ce,he,_e,pe,fe,me,Ee,Ae,Te,ge,Re,be,Se,Ie,Oe,De,ye,Le,Ce,ve,He,we,Ue,Pe,Ne,xe,Me,Ve,je,ke,Be,Ge,Fe,We,qe,Ke,Ye,ze,Xe,Ze,Je,Qe,$e,l("p",null,[e("More example SSO configurations "),o(t,{to:"/docs/self-hosted/sso-examples"},{default:n(()=>[e("can be found here")]),_:1}),e(".")]),ln,en,l("table",null,[nn,l("tbody",null,[tn,on,un,sn,an,dn,rn,cn,hn,_n,pn,fn,l("tr",null,[mn,l("td",null,[e("SVG icon to display with the login link. "),o(t,{to:"/docs/getting-started/glossary#icons"},{default:n(()=>[e("See options here")]),_:1}),e(".")]),En]),An,Tn])]),gn,Rn,bn,l("table",null,[Sn,l("tbody",null,[In,On,Dn,yn,Ln,Cn,vn,Hn,l("tr",null,[wn,l("td",null,[e("SVG icon to display with the login link. "),o(t,{to:"/docs/getting-started/glossary#icons"},{default:n(()=>[e("See options here")]),_:1}),e(".")]),Un]),Pn,Nn])]),xn,Mn,Vn,jn,kn,Bn,Gn,Fn,Wn,qn,Kn,Yn,zn,Xn,Zn,Jn,Qn,$n,lt,et,nt,tt,ot,ut,st,at,dt,rt,it,ct,ht,_t,pt,ft,mt,Et,At,Tt,gt,Rt,bt,St,It,Ot,Dt,yt,Lt])]),_:1})}}};export{Mt as default,Nt as description,Pt as modularExtension,xt as readTime,Ut as title};
@@ -1 +1 @@
1
- import{a as i,o as d,b as c,w as o,l as t,E as e,e as s}from"./runtime-core.esm-bundler.fe249c5c.js";const h={class:"markdown-body"},u=t("blockquote",null,[t("p",null,[e("The Content Module is the primary way for Users to interact with Items in a Collection. Regardless of what your data model contains "),t("em",null,"(be it blog posts, event bookings, IoT fleets, geo-positions, CRM, or whatever!)"),e(" the Content Module enables you to view and manage, sort and search, or import and export data.")])],-1),m={class:"tip hint"},p=t("div",{class:"hint-title"},"Before You Begin",-1),g=t("h2",{id:"collection-page",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#collection-page"},"#"),e(" Collection Page")],-1),_=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content/content-20220415A/collection-page-20220415A.webp",alt:"Collection Overview"})],-1),f={class:"tip hint"},w=t("strong",null,"Settings",-1),v=t("h2",{id:"item-page",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#item-page"},"#"),e(" Item Page")],-1),y=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content/content-20220415A/item-page-20220215A.webp",alt:"Article Overview"})],-1),C=t("h2",{id:"shares",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#shares"},"#"),e(" Shares")],-1),b=t("video",{title:"Data Sharing",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content/content-20220415A/data-shares-20220415A.mp4",type:"video/mp4"})],-1),M="Content",P=!1,A="The Content Module is the primary way for Users to interact with Items in a Collection. Regardless of what your data model contains _(be it blog posts, event bookings, IoT fleets, geo-positions, CRM, or whatever!)_ the Content Module enables Users to view and manage, sort and search, or import and export data.",U="3 min read",B={__name:"content",setup(I,{expose:l}){const a={title:"Content",modularExtension:!1,description:"The Content Module is the primary way for Users to interact with Items in a Collection. Regardless of what your data model contains _(be it blog posts, event bookings, IoT fleets, geo-positions, CRM, or whatever!)_ the Content Module enables Users to view and manage, sort and search, or import and export data.",readTime:"3 min read"};return l({frontmatter:a}),(T,x)=>{const n=i("router-link"),r=i("docs-wrapper");return d(),c(r,{frontmatter:a},{default:o(()=>[t("div",h,[u,t("div",m,[p,t("p",null,[e("A solid understanding about "),s(n,{to:"/docs/getting-started/glossary#collections"},{default:o(()=>[e("Collections")]),_:1}),e(", "),s(n,{to:"/docs/getting-started/glossary#items"},{default:o(()=>[e("Items")]),_:1}),e(" and "),s(n,{to:"/docs/getting-started/glossary#fields"},{default:o(()=>[e("Fields")]),_:1}),e(" will help you use the Content module efficiently.")])]),g,_,t("p",null,[e("The Content Module consists of Collection Pages and Item Pages. Use the Navigation Bar on the left to move between Collections. Each Collection Page displays all Items in its Collection and comes with highly configurable "),s(n,{to:"/docs/getting-started/glossary#layouts"},{default:o(()=>[e("Layouts")]),_:1}),e(" for browsing, visualizing, and managing Items. The Page Header includes key action buttons for sorting, searching, filtering, creating, editing, archiving, and deleting multiple Items. To learn more, see our guide on the "),s(n,{to:"/docs/app/content/collections"},{default:o(()=>[e("Collection Page")]),_:1}),e(".")]),t("div",f,[t("p",null,[e("The Content module helps you manage Items. Collections are managed within the "),w,e(" menu, as these actions results in changes to the data model. To learn more, see our guide on "),s(n,{to:"/docs/configuration/data-model"},{default:o(()=>[e("data model configuration")]),_:1}),e(".")])]),v,y,t("p",null,[e("When you click an Item on the Collection page, its Item Page will open. The Item Page is a form that enables you to view, edit or delete an Item and its field values. You can also comment on, share, archive, or revert an Item from this form. To learn more, see our guide on the "),s(n,{to:"/docs/app/content/items"},{default:o(()=>[e("Item Page")]),_:1}),e(".")]),C,b,t("p",null,[e("In any project, certain Collections will have limited access permissions. In some cases, you may need to share one of the Items within the collection with an individual or group of individuals who don\u2019t yet have permission. In this case, use Shares. Shares enable you to share an Item from a Collection with anyone, regardless of their permissions, and even if they are not Users within the project. To learn more, see our guide on "),s(n,{to:"/docs/app/content/shares"},{default:o(()=>[e("Data Sharing")]),_:1}),e(".")])])]),_:1})}}};export{B as default,A as description,P as modularExtension,U as readTime,M as title};
1
+ import{a as i,o as d,e as c,y as o,u as t,q as e,z as s}from"./runtime-core.esm-bundler.22ec0346.js";const h={class:"markdown-body"},u=t("blockquote",null,[t("p",null,[e("The Content Module is the primary way for Users to interact with Items in a Collection. Regardless of what your data model contains "),t("em",null,"(be it blog posts, event bookings, IoT fleets, geo-positions, CRM, or whatever!)"),e(" the Content Module enables you to view and manage, sort and search, or import and export data.")])],-1),m={class:"tip hint"},p=t("div",{class:"hint-title"},"Before You Begin",-1),g=t("h2",{id:"collection-page",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#collection-page"},"#"),e(" Collection Page")],-1),_=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content/content-20220415A/collection-page-20220415A.webp",alt:"Collection Overview"})],-1),f={class:"tip hint"},v=t("strong",null,"Settings",-1),w=t("h2",{id:"item-page",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#item-page"},"#"),e(" Item Page")],-1),y=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content/content-20220415A/item-page-20220215A.webp",alt:"Article Overview"})],-1),C=t("h2",{id:"shares",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#shares"},"#"),e(" Shares")],-1),b=t("video",{title:"Data Sharing",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content/content-20220415A/data-shares-20220415A.mp4",type:"video/mp4"})],-1),M="Content",P=!1,A="The Content Module is the primary way for Users to interact with Items in a Collection. Regardless of what your data model contains _(be it blog posts, event bookings, IoT fleets, geo-positions, CRM, or whatever!)_ the Content Module enables Users to view and manage, sort and search, or import and export data.",U="3 min read",B={__name:"content",setup(I,{expose:l}){const a={title:"Content",modularExtension:!1,description:"The Content Module is the primary way for Users to interact with Items in a Collection. Regardless of what your data model contains _(be it blog posts, event bookings, IoT fleets, geo-positions, CRM, or whatever!)_ the Content Module enables Users to view and manage, sort and search, or import and export data.",readTime:"3 min read"};return l({frontmatter:a}),(T,x)=>{const n=i("router-link"),r=i("docs-wrapper");return d(),c(r,{frontmatter:a},{default:o(()=>[t("div",h,[u,t("div",m,[p,t("p",null,[e("A solid understanding about "),s(n,{to:"/docs/getting-started/glossary#collections"},{default:o(()=>[e("Collections")]),_:1}),e(", "),s(n,{to:"/docs/getting-started/glossary#items"},{default:o(()=>[e("Items")]),_:1}),e(" and "),s(n,{to:"/docs/getting-started/glossary#fields"},{default:o(()=>[e("Fields")]),_:1}),e(" will help you use the Content module efficiently.")])]),g,_,t("p",null,[e("The Content Module consists of Collection Pages and Item Pages. Use the Navigation Bar on the left to move between Collections. Each Collection Page displays all Items in its Collection and comes with highly configurable "),s(n,{to:"/docs/getting-started/glossary#layouts"},{default:o(()=>[e("Layouts")]),_:1}),e(" for browsing, visualizing, and managing Items. The Page Header includes key action buttons for sorting, searching, filtering, creating, editing, archiving, and deleting multiple Items. To learn more, see our guide on the "),s(n,{to:"/docs/app/content/collections"},{default:o(()=>[e("Collection Page")]),_:1}),e(".")]),t("div",f,[t("p",null,[e("The Content module helps you manage Items. Collections are managed within the "),v,e(" menu, as these actions results in changes to the data model. To learn more, see our guide on "),s(n,{to:"/docs/configuration/data-model"},{default:o(()=>[e("data model configuration")]),_:1}),e(".")])]),w,y,t("p",null,[e("When you click an Item on the Collection page, its Item Page will open. The Item Page is a form that enables you to view, edit or delete an Item and its field values. You can also comment on, share, archive, or revert an Item from this form. To learn more, see our guide on the "),s(n,{to:"/docs/app/content/items"},{default:o(()=>[e("Item Page")]),_:1}),e(".")]),C,b,t("p",null,[e("In any project, certain Collections will have limited access permissions. In some cases, you may need to share one of the Items within the collection with an individual or group of individuals who don\u2019t yet have permission. In this case, use Shares. Shares enable you to share an Item from a Collection with anyone, regardless of their permissions, and even if they are not Users within the project. To learn more, see our guide on "),s(n,{to:"/docs/app/content/shares"},{default:o(()=>[e("Data Sharing")]),_:1}),e(".")])])]),_:1})}}};export{B as default,A as description,P as modularExtension,U as readTime,M as title};