-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
88 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
clapshot-client (0.6.0) bookworm; urgency=low | ||
|
||
* New communication API | ||
* Support for folders and custom UI views (requires an Organizer plugin in the backend) | ||
* 'Download original video' button in the player | ||
* New communication API, lots of changes under the hood | ||
* Connection errors now shown in the "connecting..." page | ||
* Updated dependencies, bump Svelte and Vite versions | ||
|
||
-- Jarno Elonen <[email protected]> Mon, 6 May 2024 19:45:00 +0200 | ||
-- Jarno Elonen <[email protected]> Sat, 18 May 2024 17:00:00 +0200 | ||
|
||
clapshot-client (0.5.6) bullseye; urgency=low | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Upgrading Clapshot to a new release | ||
|
||
These instruction are for basic .deb -based deployments, adapt as necessary for custom ones. | ||
|
||
1. Stop the server, `systemctl stop clapshot-server` | ||
2. Install the new packages: `dpkg -i clapshot-*.deb` | ||
3. Compare you current configuration (`/etc/clapshot-server.conf`) to the latest example at `/usr/share/doc/clapshot-server/examples/clapshot-server.conf`. Edit as necessary. | ||
4. Make sure `migration = true` in the config file. | ||
5. Start the server, `systemctl start clapshot-server` | ||
6. Check that it started, `systemctl status clapshot-server` | ||
7. Review server log at `/var/log/clapshot.log`. If the server or organizer applied any **database migrations**, they are mention in the log, and a backup `.tar.gz` will be present next to you database (usually, `/mnt/clapshot-data/data/clapshot.sqlite`). | ||
8. If the server didn't start properly, set `debug = true` in `/etc/clapshot-server.conf`, and start again. This will increase log verbosity level, to give you more clues on what went wrong. | ||
|
||
### Notes | ||
|
||
- Make sure to fully reload the Client page on a browers if Client package was upgraded. You might otherwise see unexpected behavior. | ||
- The basic_folders Organizer plugin doesn't have its own systemd entry (it's executed by the Server), so you don't need to `systemct stop/start` it. It also piggybacks the server when doing migrations. | ||
|
||
If you find this migration guide lacking, please contribute corrections and additions on the [Clapshot's GitHub page](https://github.com/elonen/clapshot). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ clapshot-organizer-basic-folders (0.6.0) bookworm; urgency=low | |
|
||
* Initial debian packaging | ||
|
||
-- Jarno Elonen <[email protected]> Mon, 06 May 2024 12:40:00 +0200 | ||
-- Jarno Elonen <[email protected]> Sat, 18 May 2024 17:00:00 +0200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,53 @@ | ||
# Clapshot server | ||
# Clapshot Server | ||
|
||
This is the server component for Clapshot - a self-hosted collaborative | ||
video review tool. See github page for an overview of the whole tool. | ||
This is the server component for Clapshot, an open-source, self-hosted tool designed for collaborative video review and annotation. For a comprehensive overview and detailed documentation, please visit the [GitHub project page](https://github.com/elonen/clapshot). | ||
|
||
The server is a HTTP daemon running behind a reverse proxy, and | ||
controlled by systemd or some other process manager. | ||
## Overview | ||
|
||
Frontend is provided in another package, and consists of static | ||
HTML, JS and CSS files. | ||
Clapshot Server is a Rust-based HTTP/Websocket daemon that manages the server-side logic for Clapshot. It is designed to run behind a reverse proxy and is typically managed using systemd or another process manager. | ||
|
||
If you have installed it in a Debian system, configure it | ||
by editing `/etc/clapshot-server.conf`. | ||
Otherwise, try `clapshot-server --help` for startup options. | ||
|
||
## Configuration and Operation | ||
|
||
After installation on a Debian-based system, configure Clapshot Server by editing the configuration file at `/etc/clapshot-server.conf`. | ||
|
||
For available startup options, use `clapshot-server --help`. All options listed by `--help` can be used in the config file. In fact, a script at `/usr/share/clapshot-server/run-with-conf.sh` will convert the config file into CLI options upon startup. | ||
|
||
### Running the Server | ||
|
||
The server runs as a systemd service by default. To start, stop, or check the status of the Clapshot Server, use the following commands: | ||
|
||
```bash | ||
sudo systemctl start clapshot-server | ||
sudo systemctl stop clapshot-server | ||
sudo systemctl status clapshot-server | ||
``` | ||
|
||
After installation, enable auto start by `sudo systemctl enable clapshot-server`. | ||
|
||
### Data directories | ||
|
||
Video files and an Sqlite database are by default stored in `/mnt/clapshot-data/`, but the location can be changed in config file. | ||
|
||
### Log Files | ||
|
||
Log files for the Clapshot Server can be found at `/var/log/clapshot.log`. | ||
When debugging, also take a look at `sudo systemctl status clapshot-server` in case the startup failed before writing anything to the log file. Setting `debug = true` in the config file will increase log verbosity. | ||
|
||
## Database Upgrades | ||
|
||
When installing a new version over an existing system, make sure `migrate = true` is set in `/etc/clapshot-server.conf`. | ||
Keeping it there permanently should be safe in current versions, as the server will back up the database in a .tar.gz before applying migrations. | ||
|
||
## External dependencies | ||
|
||
Most deployments will also run an Nginx instance, that reverse proxies API calls to the Clapshot Server, and serves Clapshot Client .html and .js files to the web browsers. | ||
|
||
### Clapshot Client | ||
|
||
Clapshot Client is a Svelte-based Single Page Application (SPA) that runs in the browser and connects to the Clapshot Server via WebSocket. It provides the user interface for video review and annotation. | ||
|
||
### Clapshot Organizer | ||
|
||
Clapshot Organizer is a plugin system that enables custom video organization, access control, and workflow enhancements. The included `basic_folders` plugin organizes videos into a hierarchical folder structure. | ||
|
||
Organizer communicates with Clapshot Server using gRPC, over Unix Sockets by default. The server initiates a connection with the plugin, which remains active as long as the server is running. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,12 @@ clapshot-server (0.6.0) bullseye; urgency=low | |
|
||
* New communication API | ||
* Organizer plugin support through gRPC | ||
* Update libraries, bump Rust version | ||
* Update dependencies, bump Rust version | ||
* Improved CORS config options, to avoid cross-origin API attacks | ||
* Configuration file changes due to Organizer support | ||
* Major codebase revamp, lots of bug fixes, and probably lots of new bugs | ||
|
||
-- Jarno Elonen <[email protected]> Mon, 6 May 2024 19:45:00 +0200 | ||
-- Jarno Elonen <[email protected]> Sat, 18 May 2024 17:00:00 +0200 | ||
|
||
clapshot-server (0.5.6) bullseye; urgency=low | ||
|
||
|