source: LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web.pm @ 796

Last change on this file since 796 was 796, checked in by nanardon, 14 years ago
  • 0.0.11
File size: 1.9 KB
Line 
1package LATMOS::Accounts::Web;
2
3use strict;
4use warnings;
5
6use Catalyst::Runtime '5.70';
7
8# Set flags and add plugins for the application
9#
10#         -Debug: activates the debug mode for very useful log messages
11#   ConfigLoader: will load the configuration from a YAML file in the
12#                 application's home directory
13# Static::Simple: will serve static files from the application's root
14#                 directory
15
16use Catalyst qw/
17    ConfigLoader
18    Static::Simple
19    Session
20    Session::State::Cookie
21    Session::Store::FastMmap
22    Authentication
23    Prototype
24    /;
25
26our $VERSION = '0.0.11';
27
28# Configure the application.
29#
30# Note that settings in LATMOS::Accounts::Web.yml (or other external
31# configuration file that you set up manually) take precedence
32# over this when using ConfigLoader. Thus configuration
33# details given here can function as a default configuration,
34# with a external configuration file acting as an override for
35# local deployment.
36
37# http://stackoverflow.com/questions/1664816/is-there-a-way-to-force-c-urifor-in-catalyst-to-generate-a-uri-that-begins-wit
38__PACKAGE__->config( using_frontend_proxy => 1 );
39
40__PACKAGE__->config( name => 'LATMOS::Accounts::Web' );
41
42__PACKAGE__->config->{'Plugin::Authentication'} = {
43    default_realm => 'la',
44    realms => {
45        la => {
46            credential => {
47                class => 'La'
48            },
49            store => {
50                class => 'Null',
51            },
52        },
53    },
54};
55
56
57# Start the application
58__PACKAGE__->setup;
59
60
61=head1 NAME
62
63LATMOS::Accounts::Web - Catalyst based application
64
65=head1 SYNOPSIS
66
67    script/latmos_accounts_web_server.pl
68
69=head1 DESCRIPTION
70
71[enter your description here]
72
73=head1 SEE ALSO
74
75L<LATMOS::Accounts::Web::Controller::Root>, L<Catalyst>
76
77=head1 AUTHOR
78
79Thauvin Olivier
80
81=head1 LICENSE
82
83This library is free software, you can redistribute it and/or modify
84it under the same terms as Perl itself.
85
86=cut
87
881;
Note: See TracBrowser for help on using the repository browser.