I just started to use Streamlit and I want to use streamlit with a webserver(such as nginx, apache or whatever you suggest).
For now, I just tried to use with NGINX but it is not working on nginx. If you help me to solve NGINX issue, it would be great. Or I am open to all other webserver suggestions.
[server]
# port=80 # change port number. By default streamlit uses 8501 port
headless=true # This will eliminate automatically open browser
enableCORS=false
enableXsrfProtection=false
enableWebsocketCompression=false
2023/05/30 13:58:21 [error] 18787#18787: *1 open() "/usr/share/nginx/html/common/css/styles.css" failed (2: No such file or directory), client: 127.0.0.2, server: 127.0.0.1, request: "GET /common/css/styles.css HTTP/1.1", host: "127.0.0.1", referrer: "http://127.0.0.1/en-US/index.html"
I’m not sure, but from the error in this log I understand that NGINX is trying to access the streamlit files from /usr/share/nginx/html/ directory and that’s why I’m getting the error. but I have no idea how to fix it. Can you help me?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.