Hello everyone! I'm new to the prefect, can someon...
# prefect-community
a
Hello everyone! I'm new to the prefect, can someone tell me or give an example where I can set url_endpoint if I want to be able to access the prefect as http: // public_dns_name/prefect on my VM EC2 on AWS?
n
Hi @Azuma! You’ll want to set the
graphql_url
variable in the VM’s
~/.prefect/config.toml
. The config will look something like this:
Copy code
[server]
  [server.ui]
  graphql_url = "<http://public_dns_name:4200/graphql>
After setting that, you'll need to restart the server and re-register any flows
a
I immediately apologize for the stupid question. But I thought that the ui block is responsible for accessing the ui part? How can I change the url of access to the ui part? This method did not bring me the desired result.
n
Oohh not a stupid question at all, that's my fault, I misunderstood your question. The steps for setting up a custom URL for Prefect Server are the same as you might for any web application, you'll need to either: 1. Open up port 8080 on your VM and configure your DNS to point webtraffic to that machine and port 2. Set up a webserver on your machine and reverse proxy it to localhost:8080, then configure your DNS to point webtraffic to that machine at the normal http port (80) However, the step I mentioned in my last message is still applicable when deploying Prefect Server in a remote environment, since the UI will need to know where to access the API.