Adjusting IP Settings in Chatwoot with Cloudflare and Docker
TLDR eddippla wanted to adjust IP settings to reflect the visitor's actual IP when using Cloudflare and Docker with Chatwoot. sojan_official and rinndoge suggested customizing the code to read from headers and offered several workarounds. The discussion also moved onto the topic of Cloudflare's business model and hosting efficiency.
Jun 14, 2023 (5 months ago)
eddippla
04:54 PMsojan_official
05:06 PMref: https://github.com/chatwoot/chatwoot/blob/1ee6a8fe90ce75ed05152bba69e76977e599effe/app/controllers/widgets_controller.rb#L62
we use request.ip . you might have to customise the code to read the ip from the headers
https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/
eddippla
05:09 PMeddippla
05:58 PMeddippla
05:58 PMruby
{ created_at_ip: request.headers["X-Forwarded-For"] or request.remote_ip }
rinndoge
07:48 PMeddippla
07:48 PMeddippla
07:48 PMeddippla
07:48 PMrinndoge
07:48 PMrinndoge
07:49 PMeddippla
07:49 PMeddippla
07:49 PMeddippla
07:49 PMrinndoge
07:49 PMeddippla
07:49 PMeddippla
07:49 PMrinndoge
07:49 PMrinndoge
07:49 PMeddippla
07:50 PMrinndoge
07:50 PMrinndoge
07:50 PMrinndoge
07:50 PMrinndoge
07:50 PMrinndoge
07:52 PMrinndoge
07:52 PMrinndoge
07:52 PMrinndoge
07:52 PMrinndoge
07:52 PMrinndoge
07:52 PMrinndoge
07:53 PMeddippla
07:53 PMeddippla
07:53 PMeddippla
07:53 PMeddippla
07:55 PMeddippla
07:56 PMeddippla
07:56 PMeddippla
07:56 PMrinndoge
07:57 PMrinndoge
07:57 PMeddippla
07:57 PMeddippla
07:57 PMrinndoge
07:57 PMrinndoge
07:57 PMeddippla
07:57 PMrinndoge
07:57 PMThey get money from government and government contracts
rinndoge
07:57 PMrinndoge
07:58 PMeddippla
07:58 PMrinndoge
07:58 PMeddippla
07:58 PMrinndoge
07:58 PMrinndoge
07:58 PMeddippla
07:58 PMeddippla
07:58 PMrinndoge
07:59 PMrinndoge
07:59 PMrinndoge
07:59 PMrinndoge
07:59 PMrinndoge
08:00 PMrinndoge
08:00 PMrinndoge
08:00 PMeddippla
08:00 PMrinndoge
08:00 PMrinndoge
08:00 PMrinndoge
08:00 PMeddippla
08:00 PMrinndoge
08:00 PMrinndoge
08:00 PMChatwoot
Indexed 2221 threads (46% resolved)
Similar Threads
Troubleshooting Error during 3.0.0 Update
patrickvandenhoek experienced an error while upgrading software to 3.0.0. ziekbaboon advised a backup and shared a guide to resolve git problems. After applying the solution, patrickvandenhoek reported successful update.
Superadmin Console Lockout and File Download Issues
tannerdsilva faced superadmin console lockout and file download issues. sojan_official suggested storage configuration adjustments. File issue was resolved, but superadmin console lockout remains unresolved.
Deleting Bulk Contacts in API
olegsotnikov asked for ways to delete bulk contacts. v_shnu suggested either using the APIs or running a script. After some trouble, olegsotnikov discovered a probable cause could be Cloudflare CDN stripping headers.
Problem With Configuring openssh-server on Ubuntu Solved
hansjk was stuck while configuring openssh-server on Ubuntu, couldn't progress past a menu step. patrickvandenhoek remotely supported and resolved the issue, it was a combination of an outdated system and system misinterpretations of 'tail' command.
Setting up Self-hosted Chatwoot with Docker and MailJet Integration Queries
code1111. was having issues with self-hosted Chatwoot via Docker and inquired about Mailjet compatibility. sojan_official assisted with troubleshooting steps and referred code1111. to setup guides and product documentation.