Automatic logout #3001
-
I've been self-hosting the application via docker compose and tailscale for a few weeks now and I love it. The one thing that keeps bothering me is automatic logout. Often times I will leave the application open while I am working. After some time, the UI will allow me to type in a prompt, but as soon as I hit enter, it will redirect me to the login page and my prompt will be lost. I'm not sure if there's a setting to change this behavior or if there's something wrong with my setup, but I'd also be happy to open an issue for this if it isn't already addressed. Please let me know! Thank you for your help. Edit: I'm using Firefox browser on Linux |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 7 replies
-
Yes this is a common grievance, it's been discussed a lot: #572 It's because we use a secure cookie setup, so if you're using a non-https connection, you will get logged out on refresh. You may be getting logged out of a message request due to low values for session expiry time as well. You can look into the discussion linked above as well as the expiry values defined here: https://www.librechat.ai/docs/configuration/authentication#session-expiry-and-refresh-token Let me know if any of this helps you. |
Beta Was this translation helpful? Give feedback.
-
If you use the tailscale serve command you can create an easy reverse proxy to setup a https port for it to get around that. I found it easier than any of the other reverse proxy options |
Beta Was this translation helpful? Give feedback.
-
...I feel like I am on StackOverflow. Anyway, I too do not want to appear rude and the project appears to be working really well for many, and it is certainly feature rich, but it is taking me longer trying to figure out how to make it work for me than writing my own GUI focused on my own needs - a UI for local LLM with MCP support. I'll redirect my energy back to that. I almost have the async loop issue sorted out (injecting MCP output into the response). |
Beta Was this translation helpful? Give feedback.
-
yea, instructions are wrong somewhere, or something changed, or I am just stupid in any case I wasted my entire morning getting to this stage. I hope it helps others who want to run their local custom quant models on apple silicon, or llama-server in general.
|
Beta Was this translation helpful? Give feedback.
-
Very long discussion. What is the shortest way, of configuring/using LibreChat locally via docker without getting kicked out after 15min? I guess many users (as I do) need a short copy/paste solution for that. There was one in the documentation, but after my latest update (after some months) it isn't working anymore and I don't find anything similiar in the current documentation. tl;dr: Plz, provide a short copy/paste solution for docker-compose, to prevent loosing the session. |
Beta Was this translation helpful? Give feedback.
-
Here is a simple solution, you can edit your docker-compose.override.yml file based on the example: services:
api:
environment:
- NODE_ENV=development # Allow cookies to be transmitted over HTTP, avoiding login issues due to missing cookies
volumes:
- type: bind
source: ./librechat.yaml
target: /app/librechat.yaml
command: node api/server/index.js # Directly start with node instead of using npm run backend Then run |
Beta Was this translation helpful? Give feedback.
Yes this is a common grievance, it's been discussed a lot: #572
It's because we use a secure cookie setup, so if you're using a non-https connection, you will get logged out on refresh. You may be getting logged out of a message request due to low values for session expiry time as well.
You can look into the discussion linked above as well as the expiry values defined here:
https://www.librechat.ai/docs/configuration/authentication#session-expiry-and-refresh-token
Let me know if any of this helps you.