Configure your server
After this page you can set every variable your recording server reads, and know what each one does.
The variables
The server reads its settings from environment variables, and only from them. One of WAVELANE_TOKEN and WAVELANE_GOOGLE_ACCOUNTS is required; both may be set. A variable set to nothing counts as unset, so an empty WAVELANE_TOKEN is a missing one.
| Variable | Default | Allowed | What it does |
|---|---|---|---|
WAVELANE_TOKEN | unset | 32 characters or more | A secret a phone can pair with and send on every call; Who may use your server. |
WAVELANE_GOOGLE_ACCOUNTS | unset | Google account addresses, separated by commas; capitals and spaces do not matter | The Google accounts a phone may sign in with; the same list may sign in to the server's page (See your server in a browser). Set, the server answers Google sign-in; unset, it answers google sign-in is off. |
WAVELANE_PUBLIC_ADDRESS | unset | the address riders type, such as wavelane.example or http://wavelane.example:8080 | Binds every Google sign-in to that address, so another server a rider pairs with cannot pass the rider's sign-in on to yours. Set it for a server reachable from the internet; riders then type that address, and the server reads its name and port from it, whatever its scheme or path. It does nothing without WAVELANE_GOOGLE_ACCOUNTS. |
WAVELANE_GOOGLE_CLIENT_IDS | wavelane's own | OAuth client ids, separated by commas | Whose sign-ins the server believes; the first is also the client its page's sign-in button uses (See your server in a browser). Leave it unset unless your server's page signs in through a Google project of your own, or you build wavelane with one. |
WAVELANE_TIMEZONE | Europe/Zurich | a zone id, such as Europe/Rome or America/New_York | The zone the recording window is read in. |
WAVELANE_RECORD_WINDOW | 07:00-22:00 | HH:MM-HH:MM, start and end not equal | The daily hours the server records: What your server records. |
WAVELANE_RETENTION_HOURS | 8 | 1 to 168 | How many hours of each station the server keeps. |
WAVELANE_SEGMENT_SECONDS | 10 | 2 to 60 | The length of each recorded piece, in seconds. |
WAVELANE_DISK_HIGH_WATER_PERCENT | 90 | 50 to 99 | How full the disk may get before the server deletes its oldest recordings. |
WAVELANE_DATA_DIR | /data | a directory path; the server creates it when it is missing | Where the recordings (in stations/), the stations being recorded (stations.json), the favourites, places and Recents the devices share (library.json) and the sign-ins (sessions.json for phones, web-sessions.json for the server's page) are kept: the image's volume. |
WAVELANE_PORT | 8080 | 1 to 65535 | The port the server listens on, on every network interface; the image exposes 8080. |
WAVELANE_FFMPEG | ffmpeg | a command | The ffmpeg that records; the image carries one. |
WAVELANE_FFPROBE | ffprobe | a command | The ffprobe that tells a stream's format; the image carries one. |
WAVELANE_DOCS_DIR | unset; the image sets /app/docs | a directory | Where this manual is served from, at /docs/, without the token. Unset, or not a directory, /docs/ answers 404 with "The manual was not built." |
When a value is wrong
The server checks the token, the accounts, the public address, the zone, the window and every number when it starts. A too short token, a number that is not a whole number or is out of its range, a public address with no host in it (https:// alone), a zone that does not exist, and a window that is not HH:MM-HH:MM, names a time that is no time of day, or starts and ends at the same time, each stop it before it records anything. It writes one line that names the variable, such as wavelane: WAVELANE_TOKEN must be at least 32 characters, and exits with status 2. Neither WAVELANE_TOKEN nor WAVELANE_GOOGLE_ACCOUNTS set stops it the same way, with wavelane: set WAVELANE_TOKEN, WAVELANE_GOOGLE_ACCOUNTS, or both, and so does a list that names nothing, such as a comma alone: wavelane: WAVELANE_GOOGLE_ACCOUNTS lists nothing; the public address fault reads wavelane: WAVELANE_PUBLIC_ADDRESS is not an address. It reports the first fault it finds, so a second may show once the first is fixed. Troubleshoot your server shows what that looks like.
The commands are not run until a station needs them, so a wrong WAVELANE_FFMPEG or WAVELANE_FFPROBE does not stop the server: its stations fail instead.