-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Prerequisites
I have searched for similar issues.
I have read the FAQ.
Question
I’m experiencing an issue when accessing Bar Assistant through my domain. Local access works correctly, but when accessing through the external domain (reverse proxy), the frontend shows this banner:
Unable to connect to "http://"mycontainerip"/bar API server. Make sure the server is running and accessible.
The frontend still tries to connect to the local LAN IP, even though my .env contains:
APP_URL=https://bar.mydomain.it/bar/
The backend seems to read the correct value, but the frontend keeps using the old local IP instead of the domain. It appears the frontend isn’t picking up the updated APP_URL or is using a cached build.
Additional Context / Logs
Installed inside a Proxmox LXC container
Bar Assistant located at /opt/bar-assistant
.env updated but frontend still requests paths like http://192.168.1.34/bar/api/
Domain endpoint is reachable directly: https://bar.pietrodanieli.it/bar/api/
Local endpoint works via LAN
Looking for guidance on how to ensure the frontend correctly uses the APP_URL from .env when running behind a domain or reverse proxy.