dodeeric / langchain-ai-assistant-with-hybrid-rag

This is a LLM chatbot coded with LangChain. The web interface is coded with Streamlit. It implements a hybrid RAG (keyword and semantic search) and chat memory.
https://bmae-ragai-webapp.azurewebsites.net
GNU General Public License v3.0
8 stars 1 forks source link

install a reverse proxy (nginx/traefik) in front of the app #25

Closed dodeeric closed 2 weeks ago

dodeeric commented 1 month ago

start app on port 8080 (no need to be root then): $ bash app.sh start install/configure a reverse proxy running on port 80 and forwarding to local-ip:8080.

apt install nginx

/etc/nginx/conf.d/assistant.conf:

server { listen 80; server_name ext-ip;

location / {
    proxy_pass http://localhost:8080;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
}

}

dodeeric commented 3 weeks ago

Works with this config: https://ngbala6.medium.com/deploy-streamlit-app-on-nginx-cfa327106050