make user-agent and x-forwaded-for configurable, rename debug path to raw

This commit is contained in:
Gianni Carafa
2023-11-02 19:35:10 +01:00
parent 45a3fe2adf
commit 3e3eebcdc2
6 changed files with 22 additions and 6 deletions

View File

@@ -71,3 +71,5 @@ http://localhost:8080/debug/https://www.google.com
| --- | --- | --- |
| `PORT` | Port to listen on | `8080` |
| `PREFORK` | Spawn multiple server instances | `false` |
| `USER_AGENT` | User agent to emulate | `Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)` |
| `X_FORWARDED_FOR` | IP Forwarder address | `66.249.66.1` |