WongSaang / chatgpt-ui

A ChatGPT web client that supports multiple users, multiple languages, and multiple database connections for persistent data storage. Provides Docker images and quick deployment scripts.
https://wongsaang.github.io/chatgpt-ui/
MIT License
1.5k stars 331 forks source link

Cannot log in #164

Closed nick-harder closed 1 year ago

nick-harder commented 1 year ago

Hi there, great app, and I am trying to use it. I am hosting it on my v-server with the linked voice2gpt.de domain and use the docker for the the installation. I can access the admin panel, but I cannot login as user. The registration function doesn't work as it requests an invitation code, but I don't understand where to find it. Also, if I add user manually from the admin panel, I still cannot log in, as it return an "Something went wrong. Please try again" error. Please help!

here is the docker-compose.yml config I used: ` version: '3' services: client: platform: linux/x86_64 image: wongsaang/chatgpt-ui-client:latest environment:

networks: chatgpt_ui_network: driver: bridge `

WongSaang commented 1 year ago

Hello, I just tried your link and it is working for login.

WongSaang commented 1 year ago

You can log in directly with the admin account.

nick-harder commented 1 year ago

yes, it is working now, but I used you bash command you provided. When I build it myself it still doesn't work, and I would prefer it to be able to develop it further. Can you suggest what might be the difference between bash command and building the docker myself?

WongSaang commented 1 year ago

Please modify your docker-compose.yml

image: wongsaang/chatgpt-ui-client:latest
environment:
      - SERVER_DOMAIN=http://backend-web-server

Or if Your front-end and back-end containers are not on the same network.

image: wongsaang/chatgpt-ui-client:latest
environment:
      - SERVER_DOMAIN=https://voice2gpt.de:9000
nick-harder commented 1 year ago

thanks! I will try that. Loving the app sofar, thanks a lot for it! Another question, is there any documentation how the web search function works? would love to read about it. If it is not in English, it is fine, I will translate it

WongSaang commented 1 year ago

I'm sorry, there are currently no related documents available. I can provide a simple idea:

  1. The backend program will use the user's input to search on duckduckgo.com
  2. Extract the search results and generate prompt
  3. Send the prompt to ChatGPT

If you are interested, you can take a look at the source code in the server-side project https://github.com/WongSaang/chatgpt-ui-server .

Kurikania commented 1 year ago

@nick-harder I have the same issue too. I used Quickly deploy script from the manual and I can see my frontend but my version of http(s)://your.domain:9000/admin just give me 500 error with no explanation in docker logs.