This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# poundtest.pp | |
node 'poundtest' { | |
include pound | |
pound::listener { | |
testlistener : | |
listen_ip => '10.10.10.10', | |
listen_port => '80', | |
listen_protocol => 'ListenHTTP', | |
head_require => 'Host: .*www.example.com*', | |
backend_ip => '10.0.100.10', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Definition: pound::listener | |
# | |
# This class installs Pound listeners | |
# | |
# Parameters: | |
# - The $listen_ip to configure the ip that the listener will listen on | |
# - The $listen_port to configure the port that the listener will listen on | |
# - The $listen_protocol to configure the protocol that the listener accepts (currently http or https) | |
# - The $ssl_cert_path to set the location of the SSL certificate if the listen_protocol is https | |
# - The $head_require to set the required header to allow connections through to the backend |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
class DanskeBank { | |
private $_magicKey; | |
private $_curlHandle; | |
public function __construct() | |
{ | |
$this->_curlHandle = curl_init(); | |
$data = array( | |
'os' => 'Android', //hmmf tried with php_uname('s') but then the service rejects logins | |
'model' => php_uname('m'), |
NewerOlder