Closed qwez closed 4 months ago
BASE_HREF should be used with reverse proxy
nginx conf example:
server {
location /thrift-rest-bridge-ui {
proxy_pass http://bridge-ui/;
}
}
PS
BASE_HREF is now optional, so you can run UI with
docker run --rm -p 80:80 -e API_URL ghcr.io/artemy-osipov/thrift-rest-bridge-ui:0.6.0
and open http://localhost:80
Yeah, it helped, thanks.
But now I got CORS error, when UI requests http://localhost:8080/services
UI is on localhost:80, Rest bridge on localhost:8080
Any chance to fix it, or I should use nginx or something like this?
It works with nginx. Thanks, issue can be resolved
Launching UI:
http://localhost:80/thrift-rest-bridge-ui shows Page not found (404) http://localhost:80 shows white page, in logs I can see requests to http://localhost/thrift-rest-bridge-ui/init.js, http://localhost/thrift-rest-bridge-ui/_app/immutable/entry/start.bb572467.js, etc with 404 status