🔧 feat: Read NGINX Config and Cleanup Docker Images 🐳 #1211
+15
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This update is aimed at refining the deployment process of our NGINX service by adjusting the volume mapping in the Docker Compose file to include the current NGINX configuration from the client directory. This ensures that users pulling the remote image get the latest configuration changes, addressing an issue where NGINX was not updating in all instances. The motivation behind this improvement is the recent addition of image uploads to the gpt-4-vision API, which necessitated an increase in the NGINX file upload limit from the default 1 MB. Alongside this, the update script has been enhanced to remove old Docker images, keeping the system lean and preventing accumulation of unused, amd most up-to-date images.
Change Type
Testing
Confirm that NGINX correctly uses the updated configuration and that the update script removes old Docker images as expected. The testing process involves:
docker-compose.yml
and verifying that thenginx.conf
is correctly utilized.docker exec -it LibreChat-NGINX cat /etc/nginx/conf.d/default.conf
before and after making local changes to the client/nginx.conf file, after seeing the changes I just madeChecklist