Files
flit/pwa/public/config.js.example

13 lines
661 B
Plaintext
Raw Permalink Normal View History

// Copy this file to config.js and fill in your own anchor URL.
// config.js is gitignored — this example is what gets committed.
//
// signalURL — WebSocket URL of your waste-go anchor (/ws endpoint)
// turnURL — TURN relay (coturn), optional but needed across mobile networks
// turnCredentialsURL — anchor endpoint that mints short-lived TURN credentials
// (requires -turn-secret flag on the anchor; omit if no TURN)
window.FLIT_CONFIG = {
signalURL: 'wss://your-anchor.example.com/ws',
turnURL: 'turn:your-anchor.example.com:3478',
turnCredentialsURL: 'https://your-anchor.example.com/turn-credentials',
}