]> git.decadent.org.uk Git - memories.git/commitdiff
Get this out of my way!
authorSimon Cozens <simon@simon-cozens.org>
Wed, 7 Feb 2007 22:20:55 +0000 (22:20 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Wed, 7 Feb 2007 22:20:55 +0000 (22:20 +0000)
git-svn-id: http://svn.simon-cozens.org/memories/trunk@8 041978f6-d955-411f-a9d7-1d8545c9c3c7

Memories/Config.pm [deleted file]
Memories/Config.pm.example [new file with mode: 0644]

diff --git a/Memories/Config.pm b/Memories/Config.pm
deleted file mode 100644 (file)
index 9796ab0..0000000
+++ /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 (file)
index 0000000..9796ab0
--- /dev/null
@@ -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;