Back

IP whitelisting concern

  • 0
  • Self Hosted
  • Web
stranger
16 Sep, 2024, 08:42

I want to limit access to console to specific IPs only, but what IP whitelisting does is it limits login access to IPs only. How can I make sure that console login page is only shown to those IPs.

TL;DR
Developers are looking to restrict console access to specific IPs only, not just login IPs, while allowing API requests with Cloudflare WAF. One solution involves using Cloudflare's WAF to restrict access to certain paths or configuring settings in Traefik and Appwrite to achieve the desired IP whitelisting for console access.
darShan
16 Sep, 2024, 08:45

maybe this env var?

stranger
16 Sep, 2024, 08:50

Yes but this is limiting login access to IP, I want console login UI restriction.

Joshi
16 Sep, 2024, 08:53

If you are using Cloudflare you can use their WAF to restrict access to /console/*to certain ips. Or you could add the following lines to your docker compose

Traefik - traefik.http.middlewares.ip-whitelist.ipwhitelist.sourcerange=<ip here>

Appwrite - traefik.http.routers.appwrite_console.rule=PathPrefix(/console) - traefik.http.routers.appwrite_console.middlewares=ip-whitelist@docker - traefik.http.routers.appwrite_console.entrypoints=appwrite_websecure - traefik.http.routers.appwrite_console.tls=true

stranger
16 Sep, 2024, 09:43

Okay, any reference to restricting web access to specific IPs while allowing API requests with cloudflare WAF.

Joshi
16 Sep, 2024, 09:49

Select your domain, go to security, then WAF

Joshi
16 Sep, 2024, 09:49
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more