Move config.php to config.sample.php, Adapt Readme
This commit is contained in:
parent
6a7dc96df1
commit
4492935dfe
3 changed files with 9 additions and 6 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
cache/*
|
||||
cache/*
|
||||
conf/config.php
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
// Gallery Title
|
||||
$conf['gallery_name'] = '<i class="fa fa-home"></i>';
|
||||
// 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'] = '';
|
||||
|
||||
?>
|
||||
?>
|
Loading…
Reference in a new issue