diff --git a/pages/docs/configuration/dotenv.mdx b/pages/docs/configuration/dotenv.mdx index 5fcb5fc10..3feeaa774 100644 --- a/pages/docs/configuration/dotenv.mdx +++ b/pages/docs/configuration/dotenv.mdx @@ -177,6 +177,20 @@ To configure LibreChat for local use or custom domain deployment, set the follow When deploying LibreChat to a custom domain, replace `http://localhost:3080` with your deployed URL - e.g. `https://librechat.example.com`. +### Cookie Domain + +By default cookies will be set without a domain attribute (browser default behavior). +To set authorization cookies on the parent domain, set the following env variable: + + + +Example above assumes that Librechat chat is hosted on a subdomain of `example.com`. +- e.g. `https://librechat.example.com`. + ### Prevent Public Search Engines Indexing By default, your website will not be indexed by public search engines (e.g. Google, Bing, …). This means that people will not be able to find your website through these search engines. If you want to make your website more visible and searchable, you can change the following setting to `false` @@ -1483,4 +1497,4 @@ Notes: - Leader election requires Redis to be enabled (`USE_REDIS=true`). - These settings are only relevant for multi-instance deployments. - The leader lease must be renewed before expiration to maintain leadership. -- If lease renewal fails after max attempts, the instance will relinquish leadership. \ No newline at end of file +- If lease renewal fails after max attempts, the instance will relinquish leadership.