Hi Leif,
On Monday, August 26, 2019 10:46:56 PM CEST Leif Johansson wrote:
The way the docker image fixes this is by doing a
envsubst in the html
and js based on those env variables.
I'm not using the docker/Dockerfile as is, I use it as the recipe to create a
standalone installation of pyff + static thiss.io. I understand that the pyff
server is subsituted in the nginx file. As far as I understand thiss-js,
everything is served by the nginx server, so all code runs in the client
brower.
I found the env/lua substitution in the nginx conf file, but completely missed
the functionality of this line in start.sh:
envsubst '${BASE_URL} ${STORAGE_DOMAIN} ${MDQ_URL} ${SEARCH_URL}' < $f >
/usr/
share/nginx/html/$f
So, there's some substitution work keft to do now ;). Curious if this can be
simplified for the HTTP_HOST=BASE_URL=STORAGE_DOMAIN=MDQ_URL by making all
URL's relative when the thiss-js code resides in the root of the same server
as the pyff daemon and is served on the same URL?
Best regards,
Martin