]> git.decadent.org.uk Git - memories.git/blob - Memories/Config.pm.example
Update to policy version 3.8.0
[memories.git] / Memories / Config.pm.example
1 package Memories::Config;
2 # PATHS AND URLS
3
4 # This parameter should be the external address of your Memories
5 # installation
6 Memories->config->uri_base("http://memories.simon-cozens.org/");
7
8 # This is where your templates will live.
9 Memories->config->{template_root} = [
10     "/web/memories/mytemplates/", # User-defined templates
11     "/etc/memories/templates/",   # Factory templates
12 ];
13
14 # Here is where uploaded photos will be stored. Your web server user
15 # should own this directory.
16 Memories->config->{data_store} = "/web/photostore/";
17
18 # You also need to configure your web server so that it serves files out
19 # of the data store; this URL should be where that data store directory
20 # is exposed on the web.
21 Memories->config->{data_store_external} = "http://memories.simon-cozens.org/store/";
22
23 # Your database server: the first part should always be "dbi"; the
24 # second, the name of the DBD driver you're using (usually mysql unless
25 # you want to do your own thing); the final part, the name of the
26 # database.
27 #
28 # Initialize this database from memories.sql and give www-data (or
29 # equivalent) read/write access to all tables.
30 Memories->config->{dsn} = "dbi:mysql:memories";
31
32 # SESSION MANAGEMENT
33 #
34 # The name of any cookies this application should give out
35 Memories->config->{auth}{cookie_name} = "memories";
36
37 # Session file storage. Create these directories and have them owned by
38 # www-data
39 Memories->config->{auth}{session_args} = {
40         Directory => "/var/lib/memories/sessions",
41         LockDirectory => "/var/lib/memories/sessionlock",
42     };
43
44 # This is where your Image::Seek library will be stored.
45 Memories->config->{image_seek} = "/var/lib/memories/imageseek.db";
46
47 # DISPLAY PARAMETERS
48 #
49 # It's OK to leave these as they are.
50
51 # The size of thumbnails to generate
52 Memories->config->{thumb_size} = "90x90";
53
54 # Sizes you want to scale to. "full" is special.
55 Memories->config->{sizes} = 
56     [ qw/ 150x100 300x200 640x480 800x600 1024x768 1280x1024 full /];
57
58 # Number of photos on a page. It's best if this is a multiple of three
59 Memories->config->{photos_per_page} = 21;
60
61 1;