Skip to content

Even with auth disabled, smart-chatbot-ui tries to load the NEXTAUTH URL @localhost and fails to load the page #145

@jerkstorecaller

Description

@jerkstorecaller

Like most home users I use smart-chatbot-ui behind an nginx reverse proxy and basic_auth.

My only changes from .env.local.example are setting the API key and the default model. So NEXTAUTH_ENABLED=false.

The first time I visit https://chat.mydomain.com, I get prompted for basic_auth by nginx, I enter it, the page loads....then smart-chatbot-ui tries to redirect to http://localhost:3000 (using some callback URL), which obviously doesn't load. This localhost:3000 is the URL of NEXTAUTH in the default .env.local. Then I try to access chat.mydomain.com again, and it loads fine from then on.

If I try a private/incognito browsing session, the same happens: tries to load localhost:3000 on the 1st load. Re-entering the URL makes it work.

Is there a way to completely disable this auth redirect? Other self-hosted tools tend to give you an option for that. It's a minor issue but I'd like to give some people access to my instance and this would confuse them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions