Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Configuration

Tom edited this page Mar 22, 2021 · 7 revisions

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.

Options

RAW_IMAGE

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);

RAW_IMAGE_LINK

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);

IMAGE_EXTENSION

Enabling this option will append the file extension to the URL. For example, /h7E2m.png rather than just /h7E2m.

define('IMAGE_EXTENSION', false);

TWITTER_CARDS

Controls whether Twitter card meta tags will be included in the viewer page. Test your cards here.

define('TWITTER_CARDS', true);

IMAGESERVE_DIR

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', "");

TWITTER_HANDLE

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', "");

APP_NAME

This value will set the prefix of the <title> element on HTML-view pages.

define('APP_NAME', "imageserve");

PASSKEY

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");
Clone this wiki locally