https://prefect.io logo
Title
m

Matthew Perry

04/23/2020, 8:40 PM
Hi folks. Setting up prefect server on a local network box, let's call it
server1
. When I access the page at
<http://server1:8080>
it starts making network calls to the graphql backend at
<http://localhost:4200>
. Surely this is configurable but I can't seem to find out where. Here's what I've tried so far: • editing
service.ui.graphql_url
in my ~/.prefect/config.toml on server1 • creating a new env and setting
environments.server1.services_host
to
server1
• exporting
PREFECT_SERVER__GRAPHQL_URL="<http://server1:4200>"
I must be missing something obvious here. Any ideas?
✔️ 1
👀 1
n

nicholas

04/23/2020, 8:45 PM
Hi @Matthew Perry! The correct config is
server.ui.graphql_url
instead of
service
, so the
config.toml
would look something like this (excuse the spacing):
[server]
  
  [server.ui]
    
    graphql_url = "<http://server1:4200>"
And then you'll need to re-run the UI service (or just all the services with
prefect server start
)
m

Matthew Perry

04/23/2020, 8:46 PM
n

nicholas

04/23/2020, 8:48 PM
Ah yes, I think that one is a vestigial config from the actual image builds and should be removed soon
m

Matthew Perry

04/23/2020, 8:49 PM
Thanks!
What is the canonical config.toml that I should reference for defaults and such?
n

nicholas

04/23/2020, 8:49 PM
Of course! Let me know if that solves your issue 😄
One sec, let me find it
m

Matthew Perry

04/23/2020, 8:52 PM
🙏 Thanks @nicholas
n

nicholas

04/23/2020, 8:52 PM
Happy to help! 😄
m

Matthew Perry

04/23/2020, 9:33 PM
Ah and the environment variable approach didn't work because I missed an underscore, should have been
PREFECT__SERVER__GRAPHQL_URL
n

nicholas

04/23/2020, 9:34 PM
Ooh good catch there, tough so see those!