daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@server01 httpdocs-apptconf]# cat app.fcgi
  2. #!/usr/bin/perl
  3. use lib '/var/www/vhosts/halo3.net/apps/Halo3-ApptConf/lib';
  4. use Dancer;
  5. use Halo3::ApptConf;
  6. use Plack::Builder;
  7. use FCGI::Engine::PSGI;
  8.  
  9. builder {
  10.         enable_if {
  11.             my $env = shift;
  12.             my $url = $env->{'REQUEST_URI'};
  13.             return false if ($url =~ /^\/smsreply/);
  14.             return false if ($url =~ /^\/smscallback/);
  15.             return true;
  16.          } 'Plack::Middleware::Auth::Basic', authenticator => \&Halo3::ApptConf::authenticate;
  17.     dance;
  18. };
RAW Paste Data
Top