-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudflared.yml
More file actions
22 lines (18 loc) · 922 Bytes
/
Copy pathcloudflared.yml
File metadata and controls
22 lines (18 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Cloudflare Tunnel Configuration (cloudflared.yml)
# This resolves your Dhan Webhook SSL / Health Check failure.
# 1. Install cloudflared on your VM: https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started-guide/local/
# 2. Run 'cloudflared tunnel login'
# 3. Create a tunnel: 'cloudflared tunnel create bharatquant-webhook'
# 4. Use the UUID from step 3 in the 'tunnel' field below.
tunnel: YOUR_TUNNEL_UUID_HERE
credentials-file: /root/.cloudflared/YOUR_TUNNEL_UUID_HERE.json
ingress:
# Map your webhook domain (e.g., api.marginos.app) to the local FastAPI port
- hostname: api.marginos.app
service: http://localhost:8000
originRequest:
noTLSVerify: true # Bypasses local SSL check, using Cloudflare's cert instead
# Health check or landing page
- hostname: webhook-check.marginos.app
service: http://localhost:8000/health
- service: http_status:404