Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jerkstorecaller opened this issue Sep 2, 2023 · 3 comments

Comments

@jerkstorecaller
Copy link

jerkstorecaller commented Sep 2, 2023

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.

@Mist-Hunter
Copy link

Mist-Hunter commented Oct 7, 2023

Thank you for this project!

I'm having the same issue as @jerkstorecaller. I'd love to be able to just run your service behind a reverse proxy and handle any auth or security on my own. I'm actually have trouble getting past the redirect at all I had Mongo setup wrong.

I doubt this is helpful, but here's the context of my trying to run this:
I'm trying to use your project in conjunction with localai which has examples from mckaywrigley/chatbot-ui but it looks that his project (your source I think) is dead. I've looked at your project and unSAGED which both seem to be forks of the dead project, but unSAGED doesn't really seem to have a fully self-hostable model.

@jerkstorecaller
Copy link
Author

jerkstorecaller commented Oct 7, 2023

@Mist-Hunter I used almost 10 of these apps and the only decent one is Librechat, so I recommend you use that. However, note you'll need to write special rules, see my ticket danny-avila/LibreChat#890

@Mist-Hunter
Copy link

@jerkstorecaller thank you! I'll be looking at that now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants