langflow
langflow copied to clipboard
Rewriting /etc/nginx/conf.d/default.conf crashes pod in read-only filesystem
Bug Description
The current docker/frontend/start-nginx.sh implementation uses sed to configure default.conf, like:
. . .
sed -i "s|__BACKEND_URL__|$BACKEND_URL|g" /etc/nginx/conf.d/default.conf
sed -i "s|__FRONTEND_PORT__|$FRONTEND_PORT|g" /etc/nginx/conf.d/default.conf
cat /etc/nginx/conf.d/default.conf
. . .
This method does not work in a read-only environment.
Reproduction
Deployment in openshift with read-only set on the securityContext will crash pod upon startup.
Expected behavior
If the nginx/conf.d/default.conf file is set by a ConfigMap, it should not be modified.
Who can help?
No response
Operating System
Openshift
Langflow Version
1.0.18
Python Version
None
Screenshot
No response
Flow File
No response