Commit Graph

57 Commits

Author SHA1 Message Date
Nicola Krumschmidt
7d8aa9fced Replace DIRECTUS_DEV env var with NODE_ENV and SERVE_APP (#6929) 2021-07-22 23:47:56 +02:00
Adrian Dimitrov
efe7b076a3 Add default-folder option (#3209)
* Allow set folder for imported files

* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.

* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).

* Add custom folder interface; use props for interfaces file/files/image in upload component

* Allow set folder for imported files

* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.

* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).

* Add custom folder interface; use props for interfaces file/files/image in upload component

* Update after rebase

* Add storage_default_folder setting, use folder when deploy file

* Fix files options; Add default label option for folder interface.

* Fix set folder for file

* UX

* Add migration for column, undo seed change

* Update nomanclature

* Make sure file library always submits folder, cleanup setting retrieval

* Use indexName on down migrate

* Fix import default folder, rename customPresets->folderPreset

* Rename interface import

* Use undefined as default folder

* Remove deprecated lang file

* Fix display of folder interface, treat null as value

* Move shared composable

* Remove unused ref

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-07-21 17:29:21 -04:00
Tim
2c9ff3bca6 Allow custom transformations of assets (#6593)
* Allow custom transformations of assets

This exposes one query parameter `transforms`, which is a JSON array of
shard transformation operations.

It also updates the asset presets. The UX for this still needs some work

* Rename options to arguments for presets

More explicit

* options -> arguments in setting spec

* Better errors for invalid JSON in asset presets

* Add limit to transforms query parameter

* Use flattened option for extra transforms

* Fix placeholder color of code input

* Allow "simple mode" aliases

* Add documentation

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-07-21 15:57:47 -04:00
j3n57h0m45
79c91ed50d enable custom name for refresh token (#6890) 2021-07-20 15:29:11 +02:00
Rijk van Zanten
11479313c9 Use / as default value for public_url (#6860) 2021-07-16 17:45:39 +02:00
Nicola Krumschmidt
e44e485939 Correctly document the default value of PUBLIC_URL (#6846) 2021-07-15 18:18:35 -04:00
Dieter Luypaert
99184a2fd7 Fix session memcache variable name (#6830) 2021-07-15 17:21:53 -04:00
Rijk van Zanten
262e8cdbb8 Show warning when PUBLIC_URL isn't correctly configured (#6840)
Closes #6539
2021-07-15 23:20:35 +02:00
Rijk van Zanten
1713f0cbf2 Allow setting a custom mailgun host (#6804)
Fixes #6787
2021-07-15 01:28:50 +02:00
Pascal Jufer
0b55035588 Clarify definition of environment variables (#6785) 2021-07-14 10:51:09 -04:00
Rijk van Zanten
44082c60e1 Add schema caching (#6456)
* Rework cache handler to be function export

* Add default schema caching

* Add schema cache

* Auto purge schema cache on schema change from api

* Only set last_access value on login

* Add note on schema cache setting
2021-06-22 20:50:20 -04:00
Rijk van Zanten
d56f02697a Allow overriding the s-maxage cache header (#6294)
* Allow overriding the s-maxage cache header

* Only load expiry / set headers when cache exists
2021-06-15 17:11:29 -04:00
nichols-green
055cd331d9 Added support for nodemailer ignoreTLS option (#6216)
* added support for nodemailer ignoreTLS option

* update doc to show no default value
2021-06-11 12:48:22 -04:00
Rijk van Zanten
7373b43042 Add note on file env vars (#6209) 2021-06-11 10:07:07 -04:00
Oreille
22f2e4662f Add support for adding a collection accent color (#5818)
* Added icon_color to directus_collections
Added migrations
Added color property to select-icon
Fixed select-icon placeholder

* Use icon color in collection header bar.

* Set `collection` and `note` fields to hald witdh

* Rename icon_color->color

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-06-03 13:04:19 -04:00
Cosmin Epureanu
7f5e59b117 Update links at security env variables (#5936) 2021-05-28 11:40:16 -04:00
Rijk van Zanten
8d3102fbad Add max concurrency and max image transform size support (#5795)
* Add assets concurrency and max size controls

* Render no-thumbnail images nicer in app

* Document new asset environment variables

* Update package-lock
2021-05-20 18:18:10 -04:00
mcarlson
c0446cb379 Add support for mailgun transport (#5613)
* Add support for mailgun transport

* eslint fix

* Add nodemailer-mailgun-transport as optional dependency

* Add docs, rename APIKEY -> API_KEY

Co-authored-by: Max Carlson <>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-14 12:20:18 -04:00
Pyll Gomez
09b19b9191 Session store knex (#5432)
* Rotate JPG image on upload #4206

* fixes #3949 width/height generated for gif and tif

* API hooks for event added for auth.login #4079

* updated doc for api hooks for new auth.login event

* Style tweaks

* Update docs

* Tweak docs some more

* Spelling error

* Allow non-required flags and pass to hook

* SDK - Persistent login refresh fixes #4113

* Fixed #4145 SDK, Token Expired error

* Spell check

* Docs Spell check

* Docs Spell check

* Docs Spell check

* update docs for sdk-js

* To delete all expired session from db on login

* corrected the condition for the delete

* changed the from Date.now to new date .

* Move it inline

* Added Knex option for Session store

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-03 11:46:42 -04:00
Rijk van Zanten
a3898fa321 Add SESSION_STORE options (#5403)
* Allow configuring the session storage driver

Fixes #3814

* Document SESSION_STORE env var

* Add missing dependency

* Docs tweak
2021-04-30 18:18:39 -04:00
Rijk van Zanten
c2e4100e55 Add root_redirect option (#4937)
* feat: don't expose admin url (optional)

* Rename REDIRECT_TO_ADMIN -> ROOT_REDIRECT, add docs

Co-authored-by: Michael Mullins <mullinsmikey@users.noreply.github.com>
2021-04-09 11:34:50 -04:00
Dustin
632895eb68 Storage: S3 ACL & Content Type (#4694)
* add S3 env config for ACL. pass along file type for S3 upload

* add STORAGE_<LOCATION>_ACL to S3 docs
2021-04-07 12:15:47 -04:00
rijkvanzanten
c4394acd7b Support custom endpoint + fix prefix in flatlist
Fixes #4498
2021-03-12 17:23:38 -05:00
rijkvanzanten
93c6b157a2 Add a URL allow list for invite urls
Closes #4456
2021-03-11 18:48:52 -05:00
Evgeny Vlasov
7bd5dc5c9f Add env for cookie domain (#4490)
* Add env for cookie domain

* fix doc

Co-authored-by: Власов Евгений <yavlas12@mts.ru>
2021-03-11 14:10:15 -05:00
YannickMol
9b0d778521 Update STORAGE_<LOCATION>_ENDPOINT environment variable description (#4388)
* Update STORAGE_<LOCATION>_ENDPOINT environment variable description

* Update docs/reference/environment-variables.md

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-03-08 16:48:57 -05:00
rijkvanzanten
e8222d2a28 Add reset_url allow list for password reset request 2021-03-08 13:48:59 -05:00
rijkvanzanten
acc8b4fd08 Use mssql instead of tedious for client name
Fixes #4427
2021-03-08 07:39:57 -05:00
Nicola Krumschmidt
08293b8570 Update Knex to version 0.95.0 (#4374)
* Update Knex to version 0.95.0

* Fix formatting in schema dialects

* Fix Knex imports

* Update package-lock

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-03 19:37:44 -05:00
rijkvanzanten
a5cb9f6b6a Update docs, tweak type 2021-03-03 16:38:21 -05:00
rijkvanzanten
c2a5622cef Remove unused environment variable 2021-02-26 10:49:19 -05:00
rijkvanzanten
81bb7cfa53 Allow configuring the connection pool size
Closes #3165
2021-02-22 20:19:08 -05:00
Rijk van Zanten
f87cbb5824 Make max-payload-size configurable (#4232)
* Make max post size configurable

Closes #2925

* Document max payload size env var
2021-02-22 18:35:07 -05:00
Juan Carlos Blanco Delgado
7dee95e8aa Adding syntax prefix parsing to specific types instead of only string var (#4190)
* Adding syntax prefix parsing to specific types instead of only strings env variables

* Update api/src/env.ts

* Update docs/reference/environment-variables.md

* Update docs/reference/environment-variables.md

* Ignore pre-parsed types

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-02-22 11:36:24 -05:00
Rijk van Zanten
35830a5dfe Move Flydrive home and implement Azure (#4110)
* Add new packages

* Update docs

* Update linked packages

* Setup file pointers

* Don't require getStream to be async

* List credits

* Load azure in storage

* Fix typo in docs

* Fix another typo

* Remove not about raising an issue
2021-02-16 18:33:50 -05:00
rijkvanzanten
c4057377b6 Add note on SameSite
Ref #4097
2021-02-16 16:32:28 -05:00
YannickMol
7830453cfc Align CORS environment variables between middleware and cos (#4099)
* Align CORS environment variables between middleware and cos

Fixes #4080

* Move CORS environment variables to env.ts
2021-02-16 14:56:09 -05:00
WoLfulus
813c731d27 Add config override support to env module (#4029)
* add override support for env module

* Override instead of merge w/ config file

* Default to reading .env instead of process.env

* Make env available in process.env

* Add docs for config-files

* Extend note

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-16 11:38:07 -05:00
Ben Haynes
239c021f12 Updates to API Reference 2021-02-08 17:31:07 -05:00
Mateo Hrastnik
48f504f252 Fix default value for refresh and access token (#3954) 2021-02-06 12:48:51 -05:00
Rijk van Zanten
817ccf3620 Overhaul docs (#3951)
* Add Quickstart Guide

* Update installation

* Remove unused files

* Update support/backing

* Tweaks in concepts

* Setup file structure for API reference 2.0

* Setup page layout for reference

* Add clean-urls plugin

* getting started updates

* Finish authentication rest

* getting started updates

* Render stylus in 2 spaces

* Various

* Various

* Finish activity docs

* Add collections reference

* Add extension reference

* concepts updates

* Fields/tweaks

* Add files doc

* Add revisions

* concepts docs

* More api reference

* Finish rest api reference (finally)

* initial concepts

* More things

* Add assets api ref

* Move sections from file to assets

* Add environment variables

* contributing docs

* Add field transforms page

* Left align table headers

* concept links

* Add API config

* Fix mobile nav

* Add migrating a project

* doc link fixes

Co-authored-by: Ben Haynes <ben@rngr.org>
2021-02-05 18:51:54 -05:00
Rijk van Zanten
5450de0351 Update Docs (#3905)
* Allow formatted value display for numbers

* Move the docs website into monorepo

* Fix build

* Tweak docs build setup

* Fix tips, pull in images

* Add syntax highlighting to docs

* Restructure nav, add divider

* Fix tips formatting

* Add prettier config

* Add editorconfig
2021-02-02 11:55:04 -05:00
theonlynexus
ccbc12e129 Added more detailed oAuth configuration docs. 2021-01-10 13:49:09 +09:00
Tien Tran
14569be099 Correct driver code for Google Cloud Storage 2021-01-04 23:57:53 +11:00
rijkvanzanten
bfb2df432e Replace ASSETS_CACHE_CONTROL with ASSETS_CACHE_TTL 2020-12-16 14:47:15 -05:00
rijkvanzanten
578b761ded Add auto-purge option
And add cache-control header when auto purge is disabled

Fixes #3425
2020-12-16 14:26:38 -05:00
rijkvanzanten
ab0ade5375 Add way to set Cache-Control header for static assets
Fixes #3332
2020-12-16 13:53:50 -05:00
rijkvanzanten
6eef331b3c Add missing env vars 2020-12-04 18:01:22 -05:00
Rijk van Zanten
c0d678d9d2 Update environment-variables.md 2020-12-03 09:30:45 -05:00
rijkvanzanten
0e44e094aa Update env vars docs 2020-12-02 15:33:16 -05:00