cadence-workflow/cadence-web

Running Cadence-Web behind NGINX

jeffreykky opened this issue · 2 comments

I'm trying to run UI through NGINX, but I could not find where to set the URL prefix.

Also I have set the UI port to 8188 instead of default 8088, I could then curl http://server:8188 but the UI failed to fetch data from API as it default fetches from "localhost:8088" e.g. http://localhost:8088/api/domains/simple-domain.

Should there be any environment variables or config files to control these?

image

Error should be started here. The "origin" variable is using default to localhost:8088 and not the TRUE origin (PMAI:8088)
image

@jeffreykky as I know cors value cannot set up with config.
as a trick, In an environment where you do not need to worry about CORS, it works well if you delete the variable.