From: Simon Cozens Date: Wed, 7 Feb 2007 22:20:55 +0000 (+0000) Subject: Get this out of my way! X-Git-Tag: 1.2+svn20070808~60 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=923e6db41b755d0f335f760849284b12eaa188fa;p=memories.git Get this out of my way! git-svn-id: http://svn.simon-cozens.org/memories/trunk@8 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- diff --git a/Memories/Config.pm b/Memories/Config.pm deleted file mode 100644 index 9796ab0..0000000 --- a/Memories/Config.pm +++ /dev/null @@ -1,58 +0,0 @@ -package Memories::Config; -# PATHS AND URLS - -# This parameter should be the external address of your Memories -# installation -Memories->config->uri_base("http://memories.simon-cozens.org/"); - -# This is where your templates will live. -Memories->config->{template_root} = "/home/simon/maypole-sites/memories/templates"; - -# Here is where uploaded photos will be stored. Your web server user -# should own this directory. -Memories->config->{data_store} = "/web/photostore/"; - -# You also need to configure your web server so that it serves files out -# of the data store; this URL should be where that data store directory -# is exposed on the web. -Memories->config->{data_store_external} = "http://memories.simon-cozens.org/store/"; - -# Your database server: the first part should always be "dbi"; the -# second, the name of the DBD driver you're using (usually mysql unless -# you want to do your own thing); the final part, the name of the -# database. -# -# Initialize this database from memories.sql and give www-data (or -# equivalent) read/write access to all tables. -Memories->config->{dsn} = "dbi:mysql:memories"; - -# SESSION MANAGEMENT -# -# The name of any cookies this application should give out -Memories->config->{auth}{cookie_name} = "memories"; - -# Session file storage. Create these directories and have them owned by -# www-data -Memories->config->{auth}{session_args} = { - Directory => "/var/lib/memories/sessions", - LockDirectory => "/var/lib/memories/sessionlock", - }; - -# This is where your Image::Seek library will be stored. -Memories->config->{image_seek} = "/var/lib/memories/imageseek.db"; - -# DISPLAY PARAMETERS -# -# It's OK to leave these as they are. -# -# The size of thumbnails to generate -Memories->config->{thumb_size} = "90x90"; - -# Sizes you want to scale to. "full" is special. -Memories->config->{sizes} = - [ qw/ 150x100 300x200 640x480 800x600 1024x768 1280x1024 full /]; - -# Number of photos on a page. It's best if this is a multiple of three -Memories->config->{photos_per_page} = 21; - -1; diff --git a/Memories/Config.pm.example b/Memories/Config.pm.example new file mode 100644 index 0000000..9796ab0 --- /dev/null +++ b/Memories/Config.pm.example @@ -0,0 +1,58 @@ +package Memories::Config; +# PATHS AND URLS + +# This parameter should be the external address of your Memories +# installation +Memories->config->uri_base("http://memories.simon-cozens.org/"); + +# This is where your templates will live. +Memories->config->{template_root} = "/home/simon/maypole-sites/memories/templates"; + +# Here is where uploaded photos will be stored. Your web server user +# should own this directory. +Memories->config->{data_store} = "/web/photostore/"; + +# You also need to configure your web server so that it serves files out +# of the data store; this URL should be where that data store directory +# is exposed on the web. +Memories->config->{data_store_external} = "http://memories.simon-cozens.org/store/"; + +# Your database server: the first part should always be "dbi"; the +# second, the name of the DBD driver you're using (usually mysql unless +# you want to do your own thing); the final part, the name of the +# database. +# +# Initialize this database from memories.sql and give www-data (or +# equivalent) read/write access to all tables. +Memories->config->{dsn} = "dbi:mysql:memories"; + +# SESSION MANAGEMENT +# +# The name of any cookies this application should give out +Memories->config->{auth}{cookie_name} = "memories"; + +# Session file storage. Create these directories and have them owned by +# www-data +Memories->config->{auth}{session_args} = { + Directory => "/var/lib/memories/sessions", + LockDirectory => "/var/lib/memories/sessionlock", + }; + +# This is where your Image::Seek library will be stored. +Memories->config->{image_seek} = "/var/lib/memories/imageseek.db"; + +# DISPLAY PARAMETERS +# +# It's OK to leave these as they are. +# +# The size of thumbnails to generate +Memories->config->{thumb_size} = "90x90"; + +# Sizes you want to scale to. "full" is special. +Memories->config->{sizes} = + [ qw/ 150x100 300x200 640x480 800x600 1024x768 1280x1024 full /]; + +# Number of photos on a page. It's best if this is a multiple of three +Memories->config->{photos_per_page} = 21; + +1;