-
Notifications
You must be signed in to change notification settings - Fork 33
Configuration
The configuration file is stored in the /public/protected/config/
directory. Its values can be changed to alter how images are saved, displayed, and served to users.
This value controls whether images should be served as a raw image, or within the HTML viewer page. The viewer can be customized by editing /public/viewer.php
.
define('RAW_IMAGE', false);
Enabling this option will bypass the viewer script and access the file directly through your web server. For example, if enabled the URL will display as /images/png/dInD3.png
rather than /dInD3.png
.
define('RAW_IMAGE_LINK', false);
Enabling this option will append the file extension to the URL. For example, /h7E2m.png
rather than just /h7E2m
.
define('IMAGE_EXTENSION', false);
Controls whether Twitter card meta tags will be included in the viewer page. Test your cards here.
define('TWITTER_CARDS', true);
The directory your imageserve installation is in relative to the web root. For example, if it's in something like http://domain.com/image/
, then you would put /image
as the value, ensuring you have the leading /
.
define('IMAGESERVE_DIR', "");
Your Twitter username (including the @). This is used for Twitter card support. If you don't plan on using it, you can leave it as default. For example, @aerouk_
.
define('TWITTER_HANDLE', "");
This value will set the prefix of the <title>
element on HTML-view pages.
define('APP_NAME', "imageserve");
PLEASE NOTE: This will be stored in plain text, so I would recommend generating a unique, long password just for this.
Setting this value controls the passkey you'll need to provide to upload images to the application. More information on what this is used for at /wiki/Setup.
define('PASSKEY', "password goes here");