2021-07-26 10:39:47 +02:00
|
|
|
= geoip-city-wsgi SOP
|
|
|
|
|
|
|
|
A simple web service that return geoip information as JSON-formatted
|
|
|
|
dictionary in utf-8. Particularly, it's used by anaconda[1] to get the
|
|
|
|
most probable territory code, based on the public IP of the caller.
|
|
|
|
|
|
|
|
== Contents
|
|
|
|
|
2021-08-24 12:37:16 +02:00
|
|
|
* <<_contact_information>>
|
|
|
|
* <<_basic_function>>
|
|
|
|
* <<_ansible_roles>>
|
|
|
|
* <<_documentation_links>>
|
2021-07-26 10:39:47 +02:00
|
|
|
|
|
|
|
== Contact Information
|
|
|
|
|
|
|
|
Owner::
|
|
|
|
Fedora Infrastructure Team
|
|
|
|
Contact::
|
|
|
|
#fedora-apps, #fedora-admin, #fedora-noc
|
|
|
|
Location::
|
|
|
|
https://geoip.fedoraproject.org
|
|
|
|
Servers::
|
|
|
|
sundries*, sundries*-stg
|
|
|
|
Purpose::
|
|
|
|
A simple web service that return geoip information as JSON-formatted
|
2021-08-24 12:37:16 +02:00
|
|
|
dictionary in utf-8. Particularly, it's used by https://fedoraproject.org/wiki/Anaconda[anaconda]
|
|
|
|
to get the most probable territory code, based on the public IP of the caller.
|
2021-07-26 10:39:47 +02:00
|
|
|
|
|
|
|
== Basic Function
|
|
|
|
|
|
|
|
* Users go to https://geoip.fedoraproject.org/city
|
|
|
|
* The website is exposed via
|
|
|
|
`/etc/httpd/conf.d/geoip-city-wsgi-proxy.conf`.
|
|
|
|
* Return a string with geoip information with syntax as JSON-formatted
|
|
|
|
dict in utf8
|
2021-08-24 12:37:16 +02:00
|
|
|
* It also currently accepts one override: `?ip=xxx.xxx.xxx.xxx`, e.g.
|
2021-07-26 10:39:47 +02:00
|
|
|
https://geoip.fedoraproject.org/city?ip=18.0.0.1 which then uses the
|
|
|
|
passed IP address instead of the determined IP address of the client.
|
|
|
|
|
|
|
|
== Ansible Roles
|
|
|
|
|
2021-08-24 12:37:16 +02:00
|
|
|
The geoip-city-wsgi role:
|
2021-07-26 10:39:47 +02:00
|
|
|
https://pagure.io/fedora-infra/ansible/blob/main/f/roles/geoip-city-wsgi
|
2021-08-24 12:37:16 +02:00
|
|
|
|
|
|
|
is present in sundries playbook:
|
2021-07-26 10:39:47 +02:00
|
|
|
https://pagure.io/fedora-infra/ansible/blob/main/f/playbooks/groups/sundries.yml
|
|
|
|
|
2021-08-24 12:37:16 +02:00
|
|
|
the proxy tasks are present in:
|
2021-07-26 10:39:47 +02:00
|
|
|
https://pagure.io/fedora-infra/ansible/blob/main/f/playbooks/include/proxies-reverseproxy.yml
|
|
|
|
|
2021-08-24 12:37:16 +02:00
|
|
|
== Documentation Links
|
2021-07-26 10:39:47 +02:00
|
|
|
|
2021-08-24 12:37:16 +02:00
|
|
|
App: https://geoip.fedoraproject.org
|
2021-07-26 10:39:47 +02:00
|
|
|
|
2021-08-24 12:37:16 +02:00
|
|
|
Source: https://github.com/fedora-infra/geoip-city-wsgi
|
2021-07-26 10:39:47 +02:00
|
|
|
|
2021-08-24 12:37:16 +02:00
|
|
|
Bugs: https://github.com/fedora-infra/geoip-city-wsgi/issues
|