Move config.php to config.sample.php, Adapt Readme

This commit is contained in:
seiichiro 2022-02-02 18:49:48 +01:00
parent 6a7dc96df1
commit 4492935dfe
3 changed files with 9 additions and 6 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
cache/* cache/*
conf/config.php

View file

@ -4,7 +4,9 @@ This is a very simple PHP based image Gallery. It takes all images from or (or p
# Running it # 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; worker_processes 4;

View file

@ -5,9 +5,9 @@
// Gallery Title // Gallery Title
$conf['gallery_name'] = '<i class="fa fa-home"></i>'; $conf['gallery_name'] = '<i class="fa fa-home"></i>';
// Full Filesystem Path to the Base Image Directory // 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 // 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 // Base URL for the Images Directory
$conf['web_imagedir'] = '/images'; $conf['web_imagedir'] = '/images';
// Base URL for the Thumbnails Directory // Base URL for the Thumbnails Directory