Rasmus
07/28/2025, 12:27 PMMarvin
07/28/2025, 12:27 PMMarvin
07/28/2025, 12:27 PMbash
prefect server start
By default, this runs on <http://127.0.0.1:4200>
4. Update Prefect Profile Configuration:
After your DNS is configured, you'll need to update your Prefect profile to use the new DNS name. Here's how:
bash
prefect config set PREFECT_API_URL="<https://prefect.yourdomain.com/api>"
5. Reverse Proxy Configuration (Recommended):
It's recommended to run your Prefect server behind a reverse proxy like NGINX. Here's a basic NGINX configuration example:
nginx
server {
listen 80;
server_name <http://prefect.yourdomain.com|prefect.yourdomain.com>;
location / {
proxy_pass <http://127.0.0.1:4200;>
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
6. SSL Configuration (Recommended):
- If you're using HTTPS (recommended for production), ensure you have SSL certificates configured
- You can obtain free SSL certificates using Let's Encrypt
- Update your NGINX configuration to use SSL
- Make sure to use https:// in your PREFECT_API_URL configuration
Important Notes:
- Always use HTTPS in production environments
- Ensure your firewall rules allow traffic on the necessary ports (typically 80/443)
- The Prefect server needs to be accessible from any location where flows will be running
- If you're using containers, ensure proper port mapping is configured
Would you like me to provide more specific details about any of these steps or explain how to set up SSL certificates for your domain?