commit | 106756fa9ec0c6af8cd04d7350eac6d15ae03ca9 | [log] [tgz] |
---|---|---|
author | Daniel Gruno <humbedooh@apache.org> | Thu Feb 25 00:11:53 2021 +0100 |
committer | GitHub <noreply@github.com> | Thu Feb 25 00:11:53 2021 +0100 |
tree | 13c86c884046e58a9ebc6360ace4f5fc2782c03a | |
parent | ca945146414178baf418db7d69269841021c53d8 [diff] |
Chop out transfer-encoding if found. If we leave it chunked, httpd is gonna have nightmares...
Aardvark Proxy Middleman
This service acts as a middleman between frontend web servers and ticket submission services such as JIRA or BugZilla, and intercepts all data sent. Data is scanned for known offending words that are common in spam, and blocks the request if such are found.
proxy_url
: The backend service to proxy to if request is sanespamurls
: Specific honey-pot URLs that trigger a block regardless of the actionignoreurls
: Specific URLs that are exempt from spam detectionpostmatches
: A list of keywords and/or regexes that, if matched, will block the requestmultimatch
: A combination blocker. If a required
keyword or regex is matched, the request will be blocked only if one or more auxiliary
keywords/regexes are also matchedTo enable as a pipservice, add the following minimal hiera yaml to your node config:
pipservice: aardvark-proxy: tag: main
As Aardvark is a proxy middleman for specific purposes, you will preferably need a web server in front. The example below relays all POST requests for /foo/bar through Aardvark, while letting all GETs etc go directly to the backend service.
Assuming Aardvark is listening on port 4321
and the real backend service is on port 8080
:
# Send all POST requests through Aardvark RewriteEngine On RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/(.*)$ http://localhost:4321/$1 [P] # Rest goes to backend directly ProxyPass / http://localhost:8080/foo/bar/