Reach the back end
When you finish, you will know how to look underneath the studio app: to read what the station is doing, change a file, or drive it from another program. For everyday settings you do not need any of this: Configure the station and the studio app comes first.
What is there
Section titled “What is there”| You want to | Use |
|---|---|
| see why something failed | the station’s log |
| change a setting the studio app does not have | the station’s files |
| copy the station key, or run a command on the station | a terminal on the station |
| let another program drive the station | the station’s API, with a token |
On Cloudron
Section titled “On Cloudron”Open the Cloudron dashboard and choose the WeaveSignal app.
- Log. Press Logs. Every part of the station writes here: the desk, playout, the chat. A setting the station cannot read is named in it.
- Files. Press File Manager and open
/app/data/. The station’s settings are inweavesignal.env; the show, the rundown and steering are lines in it too (STUDIO_*,STEERING_*), or a file,station.toml; the secrets the station made for itself, such as the station key, are insecrets.env. After a change, restart the app. - Terminal. Press Terminal for a command line inside the app. Read files there; change them in the File Manager.
The studio’s own address (the one with /setup/) is behind Cloudron’s login; the public pages are not.
On your own server
Section titled “On your own server”- Log and status. In the folder you installed from,
deploy/compose/weavesignal.sh --statuslists each part of the station and whether it runs; your container tool’slogscommand shows each part’s log. - Files. The settings are in
deploy/compose/.env. After a change, rundeploy/compose/weavesignal.shagain: it changes only what you changed.
The API
Section titled “The API”Everything the studio app does, it does through the station’s API, so another program can do it too.
- In the studio app, sign in as an admin and press Settings, then API tokens, and make a token for that program.
- Give the program the token and the station’s address. The list of what it can ask is at the station’s address followed by
/api/v1/openapi.json, and in the API reference. - Remove the token in Settings when the program no longer needs it.
The station key (in secrets.env) also opens the API, with every admin right.
Keep it for emergencies and for the first sign-in; give programs a token instead.
If it does not work
Section titled “If it does not work”- Cloudron sends you to its login page. You used the studio’s address without signing in to Cloudron; sign in, or use a token, which passes the login.
- A file change did nothing. The station was not restarted, or the line has a typo: the log names the setting it cannot read.
- The API answers 401. The token was removed, or it is for another station.
More detail
Section titled “More detail”Settings, Control plane routes, Install on Cloudron and Run with Compose.
Text and images CC BY-SA 4.0; code samples AGPL-3.0-only, as the code is. Licences.