forked from unicorn-gallery/unicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_sample.php
39 lines (31 loc) · 1.47 KB
/
config_sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
use Mre\Unicorn\lib\Config;
// You can set a name for your gallery which
// will be shown at the homepage.
Config::write("gallery_name", "unicorn gallery");
// Set your consumer key, secret and callback URL
Config::write("key", "xxxxxxxxxxxxxxx");
Config::write("secret", "xxxxxxxxxxxxxxx");
Config::write("access_token", "xxxxxxxxxxxxxxx");
// To ensure we don't attempt to obtain an access token for each user request, we must store it
// inside a directory.
// We also store the cursor for the delta api inside this directory.
// Tokens should be stored in a non-web-facing directory. Where?
// (Give an absolute path!)
Config::write("storage_object_dir", __DIR__ . "/data");
// In order to improve page speed, all images get cached.
// We need a directory to put the images into.
// Most likely you don't need to change this setting.
// This directory must be publicly accessible.
Config::write("cache_dir", __DIR__ . "/cache");
// You can also specify the update frequency of the cache.
// By default we refresh the cache after five minutes (300s).
Config::write("cache_update_after", 300);
// Template, asset and logfile directories.
// Only change if you know what you are doing.
Config::write("template_dir", __DIR__ . "/templates");
Config::write("asset_dir", __DIR__ . "/assets");
Config::write("logfile", __DIR__ . "/logs/logfile.txt");
// Constant with absolute path to the public-facing root of the server.
// Don't change.
Config::write("root_path", $_SERVER['DOCUMENT_ROOT']);