Net-FullAuto

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

}

# mirror(): Its purpose is to deal with proxy authentication. When we
# call SUPER::mirror, we relly call the mirror method in
# LWP::UserAgent. LWP::UserAgent will then call
# $self->get_basic_credentials or some equivalent and this will be
# $self->dispatched to our own get_basic_credentials method.

# Our own get_basic_credentials sets $USER and $PASSWD, two globals.

# 407 stands for HTTP_PROXY_AUTHENTICATION_REQUIRED. Which means
# although we have gone through our get_basic_credentials, the proxy
# server refuses to connect. This could be a case where the username or
# password has changed in the meantime, so I'm trying once again without
# $USER and $PASSWD to give the get_basic_credentials routine another
# chance to set $USER and $PASSWD.

# mirror(): Its purpose is to deal with proxy authentication. When we
# call SUPER::mirror, we relly call the mirror method in
# LWP::UserAgent. LWP::UserAgent will then call
# $self->get_basic_credentials or some equivalent and this will be
# $self->dispatched to our own get_basic_credentials method.

# Our own get_basic_credentials sets $USER and $PASSWD, two globals.

# 407 stands for HTTP_PROXY_AUTHENTICATION_REQUIRED. Which means
# although we have gone through our get_basic_credentials, the proxy
# server refuses to connect. This could be a case where the username or
# password has changed in the meantime, so I'm trying once again without
# $USER and $PASSWD to give the get_basic_credentials routine another
# chance to set $USER and $PASSWD.

sub mirror {
    my($self,$url,$aslocal) = @_;
    my $result = $self->SUPER::mirror($url,$aslocal);
    if ($result->code == 407) {

lib/Net/FullAuto/ISets/Local/Ampache_is.pm  view on Meta::CPAN

            location ~ ^/.\\x2A.php {
                fastcgi_index index.php;

                # sets the timeout for requests in [s] , 60s are normally enough
                   fastcgi_read_timeout 600s;

                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME \\x24document_root\\x24fastcgi_script_name;

                # Mitigate HTTPOXY https://httpoxy.org/
                   fastcgi_param HTTP_PROXY \\x22\\x22;

                # has to be set to on if encryption (https) is used:
                   # fastcgi_param HTTPS on;

                fastcgi_split_path_info ^(.+?\\x5C.php)(/.\\x2A)\\x24;

                # chose as your php-fpm is configured to listen on
                   fastcgi_pass unix:/var/run/php-fpm/php7.0-fpm.sock;
                   # fastcgi_pass 127.0.0.1:8000/;
            }



( run in 0.879 second using v1.01-cache-2.11-cpan-71847e10f99 )