Hi folks. Setting up prefect server on a local net...
# prefect-community
m
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
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):
Copy code
[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
n
Ah yes, I think that one is a vestigial config from the actual image builds and should be removed soon
m
Thanks!
What is the canonical config.toml that I should reference for defaults and such?
n
Of course! Let me know if that solves your issue 😄
One sec, let me find it
m
🙏 Thanks @nicholas
n
Happy to help! 😄
m
Ah and the environment variable approach didn't work because I missed an underscore, should have been
PREFECT__SERVER__GRAPHQL_URL
n
Ooh good catch there, tough so see those!