Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
/ directus-unsplash Public archive

Unsplash embed provider for Directus Docker image

License

Notifications You must be signed in to change notification settings

sc0ttes/directus-unsplash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Directus Unsplash

***** This was for Directus v8 and is not compatible with v9 *****

Unsplash embed provider for Directus Docker image

Disclaimer

I am neither associated with the Directus project nor Unsplash

Configure

Add the following bits to your docker-compose file to mount the UnsplashProvider.php file, establish a symlink, change file ownership, and change the maximum file upload size to 50MB.

services:
 directus:
  entrypoint:
   - "bash"
   - "-c"
   - "/usr/local/bin/directus-entrypoint pwd;php-ini-add 'post_max_size=50M';php-ini-add 'upload_max_filesize=50M';ln -s /var/directus/custom/embeds/UnsplashProvider.php /var/directus/src/core/Directus/Embed/Provider/;chown -R www-data:www-data /var/directus/src/core/Directus/Embed/Provider/;apache2-foreground;"
  volumes:
   - ./data/custom:/var/directus/custom

About

Unsplash embed provider for Directus Docker image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages