Skip to content

Frontend still pointing to local IP despite correct APP_URL in .env #541

@Pietro0387

Description

@Pietro0387

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions