Update README.md

pull/321/head
Anastasia Kim 2 months ago
parent 1279bc2f7e
commit 206f085e8b

@ -54,6 +54,8 @@ The server can be customized with the following environment variables:
- `TURN_HOST` Hostname or IP address of the TURN server. Defaults to `127.0.0.1`. - `TURN_HOST` Hostname or IP address of the TURN server. Defaults to `127.0.0.1`.
- `TURN_REALM` Realm used when generating TURN credentials. Defaults to `file.pizza`. - `TURN_REALM` Realm used when generating TURN credentials. Defaults to `file.pizza`.
- `STUN_SERVER` STUN server URL to use when `COTURN_ENABLED` is disabled. Defaults to `stun:stun.l.google.com:19302`. - `STUN_SERVER` STUN server URL to use when `COTURN_ENABLED` is disabled. Defaults to `stun:stun.l.google.com:19302`.
- `PEERJS_HOST` Hostname or IP address to the self-hosted PeerJS server. Defaults to `0.peerjs.com`.
- `PEERJS_PATH` Path to self-hosted PeerJS server. Defaults to `/`.
## FAQ ## FAQ

@ -4,10 +4,7 @@ import { setTurnCredentials } from '../../../coturn'
const turnHost = process.env.TURN_HOST || '127.0.0.1' const turnHost = process.env.TURN_HOST || '127.0.0.1'
const stunServer = process.env.STUN_SERVER || 'stun:stun.l.google.com:19302' const stunServer = process.env.STUN_SERVER || 'stun:stun.l.google.com:19302'
const peerjsHost = process.env.PEERJS_HOST || '0.peerjs.com'
// PATCH(gingermuffin):
// Create host and path to local peerjs
const peerjsHost = process.env.PEERJS_HOST || '127.0.0.1'
const peerjsPath = process.env.PEERJS_PATH || '/' const peerjsPath = process.env.PEERJS_PATH || '/'
export async function POST(): Promise<NextResponse> { export async function POST(): Promise<NextResponse> {

Loading…
Cancel
Save