# Configuration Options
Looking for the latest Prefect 2 release? Prefect 2 and Prefect Cloud 2 have been released for General Availability. See https://docs.prefect.io/ for details.
A full list of configuration options can be seen in the Prefect config.toml. To update configuration settings you can update them in ./prefect/config.toml
or by setting environment variables.
For more on configuration, you can also see the Prefect Core configuration docs.
# Connecting to a different API Endpoint
If you are running Prefect Server, you can update the server.host
and server.port
config settings to point to a new API endpoint.
[server]
host = ...
port = ...
As with all configuration options, you can update these using environment variables as well:
PREFECT__SERVER__HOST
PREFECT__SERVER__PORT
# Running Prefect with a pre-existing postgres database
If you are running Prefect Server and have a postgres instance set up elsewhere then providing a server.database.connection_url
or server.database.host
will allow you to connect to it:
[server.database]
connection_url = ...
host= ...
The connection_url format is:
postgresql://username:password@host:port/database_name