Skip to content

Commit

Permalink
feat: Update Traefik docs about support for static file caching and c…
Browse files Browse the repository at this point in the history
…ompression
  • Loading branch information
danny-avila committed Aug 5, 2024
1 parent 55583a2 commit 989e6c0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pages/docs/remote/traefik.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,16 @@ You can now access your LibreChat instance at `https://your.domain.name`. Traefi
- The Traefik configuration listens on ports 80 and 443 for HTTP and HTTPS traffic, respectively. Ensure that these ports are open on your server's firewall.
- Traefik stores SSL/TLS certificates in the `./letsencrypt` directory on your host machine. You may want to back up this directory periodically.
- For more advanced configuration options, refer to the official Traefik documentation: [https://doc.traefik.io/](https://doc.traefik.io/)

## Static File Caching and Compression

LibreChat now supports static file caching and compression natively. If you're using Traefik to handle compression, you should disable compression in LibreChat to avoid redundant processing. You can do this by setting the `DISABLE_COMPRESSION` environment variable to `true` in your LibreChat configuration.

```.env
# .env file
DISABLE_COMPRESSION=true
```

This will prevent LibreChat from compressing static files, allowing Traefik to handle compression more efficiently.

For more information on static file handling in LibreChat, including caching options, refer to the [Static File Handling](/docs/static-file-handling) documentation.

0 comments on commit 989e6c0

Please sign in to comment.