Wellington Braga
03/15/2023, 1:36 PMPREFECT_API_URL
variable to `0.0.0.0:4200/ap`i , but it's simply ignored. Is there any solution for this?
issue: https://github.com/PrefectHQ/prefect/issues/5648Zanie
03/15/2023, 2:03 PM--host
or https://docs.prefect.io/api-ref/prefect/settings/#prefect.settings.PREFECT_SERVER_API_HOST when starting the server.Wellington Braga
03/15/2023, 2:15 PM--host
flag or declaring the PREFECT_SERVER_API_HOST
setting to 0.0.0.0
the error persistsZanie
03/15/2023, 2:43 PM0.0.0.0
Wellington Braga
03/15/2023, 2:48 PMCan't connect to Server API at <http://127.0.0.1:4200/api>. Check that it's accessible from your machine.
apparently no variable is changing this value as anything I change keeps showing the IP 127.0.0.1ENV PREFECT_SERVER_API_HOST=<http://mydomain.com|mydomain.com>"
instead of directly inside the container
prefect config PREFECT_SERVER_API_HOST="<http://mydomain.com|mydomain.com>"
Zanie
03/15/2023, 6:02 PMPREFECT_UI_API_URL = Setting(
str,
default=None,
value_callback=default_ui_api_url,
)
"""The connection url for communication from the UI to the API.
Defaults to `PREFECT_API_URL` if set. Otherwise, the default URL is generated from
`PREFECT_SERVER_API_HOST` and `PREFECT_SERVER_API_PORT`. If providing a custom value,
the aforementioned settings may be templated into the given string.
"""