NEXT_PUBLIC_BASE_PATH
not work with docker
#2528
Unanswered
YealKio
asked this question in
Self Hosting | 私有化部署
Replies: 2 comments 9 replies
-
👀 @YealKio Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
0 replies
-
NEXT_PUBLIC_BASE_PATH is not working with docker. You need to build it with |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
💻 Operating System
Ubuntu
📦 Environment
Docker
🌐 Browser
Chrome
🐛 Bug Description
Chat-lobe + ollama +nginx not work.
Chat-lobe can not init in the first time, like nginx SUBPATH thing, not sure, see my step please.
BTW, ollama server and Chat-lobe server are not the same device, but in LAN.
I can run OPEN-WEBUI + OLLAMA + NGINX without problem.
🚦 Expected Behavior
Even can not init.
📷 Recurrence Steps
Chat lobe run with docker:
sudo docker run -d -p 3210:3210 -e OLLAMA_PROXY_URL=http://192.168.2.202:11434 -e NEXT_PUBLIC_BASE_PATH=/chat-lobe lobehub/lobe-chat
this my nginx conf file:
when I open my.nas.com:port/chat-lobe, the Chrome just show:
![image](https://private-user-images.githubusercontent.com/48641500/331020519-52bbef73-127f-4cbf-a030-1e411096c8fc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzNzEwMzEsIm5iZiI6MTcxOTM3MDczMSwicGF0aCI6Ii80ODY0MTUwMC8zMzEwMjA1MTktNTJiYmVmNzMtMTI3Zi00Y2JmLWEwMzAtMWU0MTEwOTZjOGZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDAyNTg1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY2Y2E4MTBhOWQyMDgyMmJiMmExOTM3NjQyYjAyMDIxMzQ4MzAwZjIxNTBhYjI2YmUyMjQwMzdlZWE2OWZmYzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.SfiRk475k2u4qhFFD-qhi8-9UpW-ADk06tTGg87nAdk)
The website console like:
Can not find any thing, and one of Request URL like:
Request URL: http://my.nas.com:port/_next/static/chunks/webpack-72cd2e677540060b.js
It look like NEXT_PUBLIC_BASE_PATH not work as expected, please help!
📝 Additional Information
Ollama server and Chat-lobe server are not the same device, but in LAN.
Beta Was this translation helpful? Give feedback.
All reactions