Verified Commit 9317aa85 authored by Thomas Citharel's avatar Thomas Citharel 🏃🏻
Browse files

Fix inverted geolocation install topic in release and source mode


Signed-off-by: Thomas Citharel's avatarThomas Citharel <tcit@tcit.fr>
parent 9b3aac8a
Pipeline #437417 passed with stage
in 58 seconds
......@@ -264,11 +264,40 @@ This will allow the address autocomplete field to provide addresses when editing
!!! note
When using the default OpenStreetMap's Nominatim provider, autocomplete is disabled and using the service implies that you accept [their Usage Policy](https://operations.osmfoundation.org/policies/nominatim/).
### Geolocation databases
Mobilizon can use geolocation from MMDB format data from sources like [MaxMind GeoIP](https://dev.maxmind.com/geoip/geoip2/geolite2/) databases or [db-ip.com](https://db-ip.com/db/download/ip-to-city-lite) databases. This allows showing events happening near the user's location.
You will need to download the City database and put it into `priv/data/GeoLite2-City.mmdb`. Finish by restarting the `mobilizon` service.
You will need to download the City database and put it into `/var/lib/mobilizon/geo/GeoLite2-City.mmdb`. You may also customize the location with the following setting:
```elixir
config :geolix,
databases: [
%{
id: :city,
adapter: Geolix.Adapter.MMDB2,
source: "/var/lib/mobilizon/geo/GeoLite2-City.mmdb"
}
]
```
* Download the database file and rename it to `GeoLite2-City.mmdb`.
* Create the GeoIP directory
```sh
mkdir -p /var/lib/mobilizon/geo
```
* Move the database inside the folder
```bash
mv GeoLite2-City.mmdb /var/lib/mobilizon/geo/
```
* Make sure the GeoIP database has the proper owner. Mobilizon only needs read access to this GeoIP database file.
```bash
chown -R mobilizon:mobilizon /var/lib/mobilizon/geo
```
Finish by restarting the `mobilizon` service.
Mobilizon will only show a warning at startup if the database is missing, but it isn't required.
\ No newline at end of file
Mobilizon will only show a warning at startup if the database is missing, but it isn't required.
......@@ -420,36 +420,6 @@ This will allow the address autocomplete field to provide addresses when editing
Mobilizon can use geolocation from MMDB format data from sources like [MaxMind GeoIP](https://dev.maxmind.com/geoip/geoip2/geolite2/) databases or [db-ip.com](https://db-ip.com/db/download/ip-to-city-lite) databases. This allows showing events happening near the user's location.
You will need to download the City database and put it into `/var/lib/mobilizon/geo/GeoLite2-City.mmdb`. You may also customize the location with the following setting:
You will need to download the City database and put it into `priv/data/GeoLite2-City.mmdb`. Finish by restarting the `mobilizon` service.
```elixir
config :geolix,
databases: [
%{
id: :city,
adapter: Geolix.Adapter.MMDB2,
source: "/var/lib/mobilizon/geo/GeoLite2-City.mmdb"
}
]
```
* Download the database file and rename it to `GeoLite2-City.mmdb`.
* Create the GeoIP directory
```sh
mkdir -p /var/lib/mobilizon/geo
```
* Move the database inside the folder
```bash
mv GeoLite2-City.mmdb /var/lib/mobilizon/geo/
```
* Make sure the GeoIP database has the proper owner. Mobilizon only needs read access to this GeoIP database file.
```bash
chown -R mobilizon:mobilizon /var/lib/mobilizon/geo
```
Finish by restarting the `mobilizon` service.
Mobilizon will only show a warning at startup if the database is missing, but it isn't required.
Mobilizon will only show a warning at startup if the database is missing, but it isn't required.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment