# ───────────────────────────────────────────── # SPB Drive — Personal Cloud Drive # ───────────────────────────────────────────── # Author : Simon-Pierre Boucher # Contact : contact@spboucher.ai # File : deploy/ngrok.yml # Purpose : ngrok v3 agent config — drive.spboucher.ai → 127.0.0.1:7430 # License : MIT © Simon-Pierre Boucher # ───────────────────────────────────────────── # # Setup once: # 1. Reserve the domain `drive.spboucher.ai` in the ngrok dashboard # (Universal Gateway → Domains → New Domain). # 2. Add the CNAME record ngrok shows you at the spboucher.ai DNS provider. # 3. Authtoken: `ngrok config add-authtoken ` once on the node — # pm2 passes both the default agent config (token) and this file (endpoint), # merged in order. (ngrok v3 configs do not interpolate env vars.) # TLS terminates at ngrok; the app runs trustProxy and reads x-forwarded-for. version: 3 endpoints: - name: spbdrive url: https://drive.spboucher.ai upstream: url: http://127.0.0.1:7430