Index: user/des/fbce/fbce.conf
===================================================================
--- user/des/fbce/fbce.conf (revision 235837)
+++ user/des/fbce/fbce.conf (revision 235838)
@@ -1,31 +1,31 @@
# $FreeBSD$
title = 2012 FreeBSD Core Team Election
dsn = "dbi:Pg:dbname=dbname"
user = "user"
password = "password"
nominating_starts = 2012-05-23 00:00:00 UTC
nominating_ends = 2012-05-30 00:00:00 UTC
voting_starts = 2012-05-30 00:00:00 UTC
voting_ends = 2012-06-27 00:00:00 UTC
announcement = 2012-06-27 18:00:00 UTC
investiture = 2012-07-04
# XXX does not belong here
max_votes = 9
cutoff = 1 year
expires = 1800
cookie_expires = 0
# cookie_secure = true
- # storage = /var/run/fbce.cache
+ storage = /tmp/fbce.__UID__/session-cache
cache_size = 8m
Index: user/des/fbce/lib/FBCE.pm
===================================================================
--- user/des/fbce/lib/FBCE.pm (revision 235837)
+++ user/des/fbce/lib/FBCE.pm (revision 235838)
@@ -1,82 +1,88 @@
package FBCE;
use Moose;
use MooseX::Types::Common::Numeric qw(PositiveInt);
use namespace::autoclean;
use Catalyst::Runtime 5.80;
use Catalyst qw/
ConfigLoader
Authentication
Authentication::Credential::Password
Session
Session::State::Cookie
Session::Store::FastMmap
Static::Simple
Unicode
/;
extends 'Catalyst';
our $VERSION = '0.01';
$VERSION = eval $VERSION;
# Configure the application.
__PACKAGE__->config(
name => 'FBCE',
view => 'HTML',
+ 'Plugin::ConfigLoader' => {
+ substitutions => {
+ UID => sub { $< },
+ PID => sub { $$ },
+ },
+ },
'Plugin::Static::Simple' => {
dirs => [ 'static' ],
},
'Plugin::Authentication' => {
default_realm => 'fbce',
fbce => {
credential => {
class => 'Password',
password_field => 'password',
password_type => 'salted_hash',
},
store => {
class => 'DBIx::Class',
user_model => 'FBCE::Person',
},
},
},
# Disable deprecated behavior needed by old applications
disable_component_resolution_regex_fallback => 1,
);
# Start the application
__PACKAGE__->setup();
=head1 NAME
FBCE - Catalyst based application
=head1 SYNOPSIS
script/fbce_server.pl
=head1 DESCRIPTION
[enter your description here]
=head1 SEE ALSO
L, L
=head1 AUTHOR
Dag-Erling Smørgrav
=head1 LICENSE
This library is free software. You can redistribute it and/or modify
it under the same terms as Perl itself.
=cut
1;
# $FreeBSD$