Changeset 605


Ignore:
Timestamp:
01/16/10 09:49:39 (14 years ago)
Author:
nanardon
Message:
  • add --forcehttps options to generate url as https://
Location:
LATMOS-Accounts-Web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web.pm

    r272 r605  
    3434# with a external configuration file acting as an override for 
    3535# 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 ); 
    3639 
    3740__PACKAGE__->config( name => 'LATMOS::Accounts::Web' ); 
  • LATMOS-Accounts-Web/script/latmos_accounts_web_server.pl

    r554 r605  
    2525my $restart_regex     = '\.yml$|\.yaml$|\.pm$'; 
    2626my $restart_directory = undef; 
     27my $forcehttps        = 0; 
    2728 
    2829my @argv = @ARGV; 
     
    4041    'restartregex|rr=s'   => \$restart_regex, 
    4142    'restartdirectory=s'  => \$restart_directory, 
     43    'forcehttps'          => \$forcehttps, 
    4244); 
    4345 
     
    4951if ( $debug ) { 
    5052    $ENV{CATALYST_DEBUG} = 1; 
     53} 
     54if ( $forcehttps ) { 
     55    $ENV{HTTPS} = 'ON'; 
    5156} 
    5257 
     
    104109                      modified files 
    105110                      (defaults to '../') 
     111   -forcehttps        force url to https 
    106112 
    107113 See also: 
Note: See TracChangeset for help on using the changeset viewer.