Skip to content

Added functionality to allow for looking up an IP address - #21

Closed
mitchellkellett wants to merge 2 commits into
PeterDaveHello:masterfrom
mitchellkellett:master
Closed

Added functionality to allow for looking up an IP address#21
mitchellkellett wants to merge 2 commits into
PeterDaveHello:masterfrom
mitchellkellett:master

Conversation

@mitchellkellett

@mitchellkellett mitchellkellett commented Mar 10, 2023

Copy link
Copy Markdown

Addresses issue #20.

Added functionality to allow for looking up an IP address by using NGINX maps.
- New map.conf that containing maps.
- Updated nginx.conf to increase map_hash_bucket_size above default value.
- Updated geoip2.conf to include new variables for lookup IP addresses.
- Updated ipinfo.conf to include new location blocks to allow for looking up IP addresses.
Moved existing functionality for looking up requesting IP address to use NGINX maps.
- Updated ipinfo.conf to remove old location blocks that have been moved to map.conf.
Updated README to include details on added functionality.

…INX maps.

	- New map.conf that containing maps.
	- Updated nginx.conf to increase map_hash_bucket_size above default value.
	- Updated geoip2.conf to include new variables for lookup IP addresses.
	- Updated ipinfo.conf to include new location blocks to allow for looking up IP addresses.
Moved existing functionality for looking up requesting IP address to use NGINX maps.
	- Updated ipinfo.conf to remove old location blocks that have been moved to map.conf.
Updated README to include details on added functionality.

@PeterDaveHello PeterDaveHello left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, as the change is huge, I'll take more time to take a look at it.

@mitchellkellett

mitchellkellett commented Mar 10, 2023

Copy link
Copy Markdown
Author

I've just found some bugs in it. I'm working to fix them. It's mostly the regex that I thought I had right, but didn't.

Added build data to headers.
Formatting updated throughout.
Updated regex to fix identified bug in map.conf.
@mitchellkellett

Copy link
Copy Markdown
Author

Should be fixed now.

@PeterDaveHello PeterDaveHello left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mitchellkellett thanks for your help. I noticed that you also added/changed the function to show more details info like city. Can we separate that part in another pull request, and focus on the functionality to allow looking up a certain IP address? Thanks.

@PeterDaveHello

Copy link
Copy Markdown
Owner

Hi @mitchellkellett, would you like to continue this pull request ;)

@mitchellkellett

mitchellkellett commented Apr 10, 2023

Copy link
Copy Markdown
Author

Hi @mitchellkellett, would you like to continue this pull request ;)

Sorry, I'll update this PR, just haven't had a chance to get to it yet.

Will raise two new PRs for the new functionality.

@PeterDaveHello

Copy link
Copy Markdown
Owner

Thank you very much, looking forward to have your PR then 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants