feat: IP lookup (#1315)

- feature to store contact IP for accounts
- IP lookup through geocoder gem
- ability to do IP lookup through external APIs
- add commit hook to prevent push to develop and master
- migrations to fix default values for jsonb columns
This commit is contained in:
Sojan Jose
2020-10-28 02:14:36 +05:30
committed by GitHub
parent ff96d43953
commit 1d9debaee0
16 changed files with 163 additions and 9 deletions

View File

@@ -117,6 +117,17 @@ IOS_APP_ID=6C953F3RX2.com.chatwoot.app
## Bot Customizations
USE_INBOX_AVATAR_FOR_BOT=true
## IP look up configuration
## ref https://github.com/alexreisner/geocoder/blob/master/README_API_GUIDE.md
## works only on accounts with ip look up feature enabled
# IP_LOOKUP_SERVICE=geoip2
# maxmindb api key to use geoip2 service
# IP_LOOKUP_API_KEY=
## Development Only Config
# if you want to use letter_opener for local emails
# LETTER_OPENER=true