Bharat Khaneja
07/10/2025, 2:52 PMMarvin
07/10/2025, 2:52 PMMarvin
07/10/2025, 2:52 PMbash
# For HTTPS proxy (most common)
export HTTPS_PROXY="<http://your-proxy-server:port>"
# or
export https_proxy="<http://your-proxy-server:port>"
# If you also need HTTP proxy
export HTTP_PROXY="<http://your-proxy-server:port>"
# or
export http_proxy="<http://your-proxy-server:port>"
# If you need to bypass proxy for certain addresses
export NO_PROXY="localhost,127.0.0.1"
2. If your proxy requires authentication, include the credentials in the URL:
bash
export HTTPS_PROXY="<http://username:password@your-proxy-server:port>"
3. If your proxy uses custom SSL certificates, you may need to set the SSL certificate path:
bash
export SSL_CERT_FILE="/path/to/your/cert.pem"
These environment variables need to be set in the environment where your Prefect server and/or workers are running. The Slack integration will automatically use these proxy settings when making outbound connections.
To verify the configuration is working, you can test it by sending a test message using the SlackWebhook block:
python
from prefect_slack import SlackWebhook
slack_webhook = SlackWebhook.load("your-block-name")
slack_webhook.notify("Test message through proxy")
Remember to:
- Ensure your proxy server allows outbound connections to Slack's domains
- Set these environment variables before starting your Prefect server/worker processes
- If using Docker, pass these environment variables to your containers
- Check your proxy server logs if you encounter connection issues
For more details about Slack integration and troubleshooting, you can refer to the Prefect Slack integration documentation.Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by