{"id":31539771,"url":"https://github.com/jb2170/flaskechoip","last_synced_at":"2026-05-17T17:02:29.825Z","repository":{"id":267565926,"uuid":"901632249","full_name":"jb2170/FlaskEchoIP","owner":"jb2170","description":"A simple Flask app that returns the value of the `X-Forwarded-For` header","archived":false,"fork":false,"pushed_at":"2026-01-18T06:21:51.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-18T16:29:13.566Z","etag":null,"topics":["flask"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/FlaskEchoIP/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jb2170.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-11T02:58:32.000Z","updated_at":"2026-01-18T06:21:55.000Z","dependencies_parsed_at":"2024-12-11T04:44:31.133Z","dependency_job_id":"a14a268a-4bc0-4096-826d-617d9dcf6787","html_url":"https://github.com/jb2170/FlaskEchoIP","commit_stats":null,"previous_names":["jb2170/flaskechoip"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jb2170/FlaskEchoIP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jb2170%2FFlaskEchoIP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jb2170%2FFlaskEchoIP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jb2170%2FFlaskEchoIP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jb2170%2FFlaskEchoIP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jb2170","download_url":"https://codeload.github.com/jb2170/FlaskEchoIP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jb2170%2FFlaskEchoIP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask"],"created_at":"2025-10-04T09:14:37.983Z","updated_at":"2026-05-17T17:02:29.791Z","avatar_url":"https://github.com/jb2170.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlaskEchoIP\n\n```\n$ curl -L ip.jb2170.com\n12.34.56.78\n```\n\nA simple Flask app that returns the value of the `X-Forwarded-For` header, so one can get their public IP address.\n\nNo more need for `$ curl -L -D - ipconfig.org` and its unnecessary cookies!\n\n## Installing\n\nI run this as a reverse proxy via Apache. Example systemd unit files and friends are in `daemon-files` of this repo\n\n- create a venv, say in `~/.local/var/lib/FlaskEchoIP`, and source it\n- `$ pip install FlaskEchoIP gunicorn`\n- place the systemd unit file and shell script into the correct folders, for example I use `~/.local/var/lib/systemd/{etc/user,usr/bin}`\n- place the `.htaccess` file in the public http folder corresponding to the domain you want to serve the app from\n- adjust the unix socket path in the `.htaccess` file and `.service` unit\n\nMake sure you have the `headers`, `proxy`, and `proxy_http` modules enabled for Apache!\n\nYou can probably figure out the rest, enabling / starting the systemd service...\n\n## Customizing\n\nSetting the environment variable `FORWARDED_IP_HEADER_NAME=X-Sneed-Chuck` makes the app return the `X-Sneed-Chuck` header value instead. (perhaps nginx uses something different than `X-Forwarded-For`.)\n\n## See also\n\n- [WSGIEchoIP](https://github.com/jb2170/WSGIEchoIP/), a raw WSGI version of this app that I also made, now archived, which was the basis for this one\n- [FlaskBump](https://github.com/jb2170/FlaskBump/), a simple Flask app that counts the number of requests to it\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjb2170%2Fflaskechoip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjb2170%2Fflaskechoip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjb2170%2Fflaskechoip/lists"}