Open darcywong00 opened 7 months ago
This is tricky to solve. There are backend and frontend considerations. Perhaps links should automatically point to live sites by default, unless docker images are present. But that could mask API problems in your test environment, because it'd look like things are working correctly but it'd be because it'd be silently connecting to the frontend instead. (I've had this problem in the past.)
So ... not sure how best to address this.
This can be deferred. I can just hand-edit KeymanHosts for now
I think LGTM. Can we rely on having website-local-proxy always running and use the same pattern for all the host.docker.internal references? That would avoid a lot of the confusion!
One challenge -- if we run the website-local-proxy on a port other than 80/443
Originally posted by @mcdurdin in https://github.com/keymanapp/shared-sites/pull/10#pullrequestreview-1759010701
Currently, the DEVELOPMENT tier in KeymanHosts changes nearly all Keyman site links to
http://host.docker.internal:{port}
.https://github.com/keymanapp/shared-sites/blob/c7586ec649f3766e4aece1a02b7d3aa148bf7859/_common/KeymanHosts.php#L134-L142
Is there a workaround for when I'm only running one site locally on docker, and would rather the external Keyman sites use live links?