langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Rewriting /etc/nginx/conf.d/default.conf crashes pod in read-only filesystem

Open devinbost opened this issue 3 months ago • 3 comments

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

devinbost avatar Oct 31 '24 11:10 devinbost