Docker image on Fly blocks all connections #15

Closed
opened 2024-05-23 06:23:32 +00:00 by phantop · 2 comments

I'm hosting a personal 4get instance using fly.io. This worked fine until seemingly the DDG scraper broke and I updated my Docker image used to the latest. Now, I get the following error, with no clear explanation:

Tshh, blocked!
Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please contact the administrator.

The configuration fly.toml is as follows:

[build]
  image = 'luuul/4get'

[env]
  FOURGET_DEFAULT_THEME = 'gentoo'
  FOURGET_SERVER_ADMIN_EMAIL = 'you@example.com'
  FOURGET_SERVER_NAME = 'REDACTED'

[http_service]
  internal_port = 80
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  cpu_kind = 'shared'
  cpus = 1
  memory_mb = 256
I'm hosting a personal 4get instance using [fly.io](https://fly.io). This worked fine until seemingly the DDG scraper broke and I updated my Docker image used to the latest. Now, I get the following error, with no clear explanation: ``` Tshh, blocked! Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please contact the administrator. ``` The configuration `fly.toml` is as follows: ```toml [build] image = 'luuul/4get' [env] FOURGET_DEFAULT_THEME = 'gentoo' FOURGET_SERVER_ADMIN_EMAIL = 'you@example.com' FOURGET_SERVER_NAME = 'REDACTED' [http_service] internal_port = 80 force_https = true auto_stop_machines = true auto_start_machines = true min_machines_running = 0 processes = ['app'] [[vm]] cpu_kind = 'shared' cpus = 1 memory_mb = 256 ```

skill issue

skill issue
Owner

You are getting this error because your instance is probably behind a reverse proxy like Cloudflare. Go in data/config.php and edit the FILTERED_HEADERS directive to not include Cloudflare's X-Real-IP header, or whatever it might be using.

You are getting this error because your instance is probably behind a reverse proxy like Cloudflare. Go in `data/config.php` and edit the `FILTERED_HEADERS` directive to not include Cloudflare's `X-Real-IP` header, or whatever it might be using.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lolcat/4get#15
No description provided.