NGINX restrict Loginpage

Description

Is it possible to restrict the login page with nginx allow list on location?

If i do it for the / location, the /livechat location is also blocked. If i unblock /livechat location, the chat button is still blocked.

So i’m looking for a way to block the login page, but everything else should be unblocked.

Server Setup Information

  • Version of Rocket.Chat Server: 6.1.6

  • Operating System: Debian 11

  • Deployment Method: manual

  • Number of Running Instances: 1

  • NodeJS Version: 14.21.3

  • MongoDB Version: 6.0.5

  • Proxy: nginx

  • Firewalls involved: Public Available 443 and 80

Any additional Information

Default NGINX Reverse Proxy setup.