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