Storage

Supported storage driver of DocKing

DocKing supports 2 storage drivers:

Public

The ENV:

FILESYSTEM_DISK=public

Utilizing the local server storage. The easiest mode for every environment.

Note, with this mode, you need to create a symlink in order to access the file URL

php artisan storage:link

S3

S3 aka AWS S3 storage is a popular cloud storage. DocKing will put all your rendered PDF files to S3 on demand.

Great for apps that serve files around the world, so you can utilize the "CDN" mode of S3.

The ENVs:

FILESYSTEM_DISK=s3
# Acess Key & Secret Key can be found in "<your username> => Security credentials"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

You need to enable Public Access & ACL.

Also don't forget to configure the CORs

Last updated