Skip to content
Back

Self hosted cant login when behind reverse proxy

  • 0
  • Self Hosted
French Noodles
30 Jun, 2025, 00:37

Hello, I have setup appwrite behind nginx proxy manager, with the help of this link I found in the forum:

https://medium.com/@stnguyen90/how-to-run-appwrite-behind-nginx-19348ed34243#1d36

But I keep facing the same issue, when going directly to the port (in this case 8080) it works fine, but if I use the domain I setup with NPM it opens, asks me to sign up, but when finishing it simply gives me an error 500 as long as the login session is active. With the error in console being:

TypeScript

[Error] URL: /v1/account

[Error] Type: Appwrite\Extend\Exception

[Error] Message: User (role: guests) missing scope (account)

[Error] File: /usr/src/code/app/controllers/shared/api.php

[Error] Line: 375

Just to clarify everything was followed exactly as the tutorial and the npm IP used is the internal IP of the npm container

TL;DR
Developers set up Appwrite behind Nginx Proxy Manager following a tutorial, but encounter a 500 error when trying to log in using the domain instead of the direct port. The error message indicates a missing scope for the user. Be sure to verify and correctly set up the scopes for users in Appwrite to resolve this issue.
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