diff --git a/.gitignore b/.gitignore index f8a91fd..523cb7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -cache/* \ No newline at end of file +cache/* +conf/config.php diff --git a/README.md b/README.md index 137e2bc..336a13a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,9 @@ This is a very simple PHP based image Gallery. It takes all images from or (or p # Running it -A webserver with PHP support and the php-gd extension (for thumbnails) is required. An example config for nginx with php-fpm might look like this: +Copy conf/config.sample.php to config.php and edit accordingly. + +A webserver with PHP support and the php-gd and php-exif extensions (for thumbnails) is required. An example config for nginx with php-fpm might look like this: worker_processes 4; @@ -100,4 +102,4 @@ A webserver with PHP support and the php-gd extension (for thumbnails) is requir index index.php; } } - } \ No newline at end of file + } diff --git a/conf/config.php b/conf/config.sample.php similarity index 85% rename from conf/config.php rename to conf/config.sample.php index 6a03d01..4ad0d4b 100644 --- a/conf/config.php +++ b/conf/config.sample.php @@ -5,9 +5,9 @@ // Gallery Title $conf['gallery_name'] = ''; // Full Filesystem Path to the Base Image Directory -$conf['fs_imagedir'] = '/data0/Private/Pictures/Gallery'; +$conf['fs_imagedir'] = '/data/images'; // Full Filesystem Path to the Thumbnails Storage Directory -$conf['fs_thumbdir'] = '/var/cache/gallery/thumbs'; +$conf['fs_thumbdir'] = '/var/cache/gallery/'; // Base URL for the Images Directory $conf['web_imagedir'] = '/images'; // Base URL for the Thumbnails Directory @@ -24,4 +24,4 @@ $conf['defslice'] = 34; // Default Subdirectory if none given $conf['defdir'] = ''; -?> \ No newline at end of file +?>