hroute é um proxy HTTP simples baseado em TPROXY.
Instalação:
& Nbsp; & nbsp; & nbsp; pip instalar -r https://github.com/downloads/benoitc/hroute/requirements.txt
& Nbsp; & nbsp; & nbsp; pip instalar hroute
Uso:
Criar um arquivo de configuração em / var / spool / hroute (caminho padrão) ou qualquer
pasta desejada ::
& Nbsp; & nbsp; & nbsp; {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; "Todos": {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; "rotas": {
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; "/ Local": {
"Remoto": "127.0.0.1:8000"
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; },
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; "/ Google": {
"Remoto": "google.com:80"
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; },
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; "/ Gunicorn": {
"Remoto": "gunicorn.org:80",
"Rewrite_response": true
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; },
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; }
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; }
& Nbsp; & nbsp; & nbsp; }
em seguida, lançar hroute ::
& Nbsp; hroute -s / var / spool / hroute w 3
e ir em `http://127.0.0.1:5000/gunicorn http://127.0.0.1:5000/gunicorn. Você deve ver o site da gunicorn.org
Recursos :.
- localização reescrever
- ligações de reescrita para lidar com proxy / caminhos
- configuração simples
- vhosts apoio
- log (vindo)
- autenticação (que vem)
Requisitos :
- Python
- GEvent
- setproctitle
- TPROXY
- lxml
- http-parser
Comentários não encontrado