Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for an IP Header + configurable number of workers #7

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

gingerwizard
Copy link

Adds two main features:

  1. Ability to specify the number of workers through the env var NUM_OF_WORKERS - defaulting to 1, so not a breaking change
  2. Ability to send a an IP header - the field HTTP_X_FORWARDED_FOR is the default. This uses a random ip value per session using faker. The pool of ips is generated on startup. The number is configurable through NUM_OF_IPS

@gingerwizard
Copy link
Author

The current approach to generating env variables doesn't seem scalable. It is probably sufficient for now, but if we start adding other options we may want to rework.

@gingerwizard
Copy link
Author

Changed default ip field to be X-Forwarded-For

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants