ctbrec/server
XxInvictus fe21f8d6a9 Patching in ForcePriority changes, needs test case
Patching in the first set which is ForcePriority context menu feature, allows instantly bumping a model to top of priority list no matter what their priority value is.

# TODO
- Needs a test case, I made an attempt but unfortunately I do not know enough to get this working so I have removed it. Doesn't help I had to do some mangling to get the current path joining to work properly with Windows-based paths and pass the current tests.
- The basic test case it needs is 2 Models, Model with lower priority does not record, forcepriority to true on lower priority Model, Model with lower priority should now record, set back to false on lower priority Model, Model with lower priority should no longer record.
2023-11-23 11:45:41 +10:30
..
.settings Update eclipse configs 2021-08-07 14:17:01 +02:00
src Patching in ForcePriority changes, needs test case 2023-11-23 11:45:41 +10:30
.classpath Update eclipse configs 2021-08-07 14:17:01 +02:00
.gitignore Add idea project files to .gitignore 2020-11-21 19:20:01 +01:00
.project Split up project into client, server, common and master 2018-11-18 22:42:13 +01:00
Dockerfile.txt Add gitattributes and run initial normalization 2019-12-17 21:13:18 +01:00
LICENSE.txt Add assembly for the server 2018-11-19 13:05:41 +01:00
README.md Add instructions for ffmpeg to the server README 2019-12-26 21:45:34 +01:00
docker-compose.yml Add gitattributes and run initial normalization 2019-12-17 21:13:18 +01:00
pom.xml Set version to 5.2.2 2023-11-15 20:13:27 +01:00

README.md

CTB Server

This is the server part, which is only needed, if you want to run ctbrec in client/server mode

Requirements

  • Java 1.8 (32-bit or 64-bit)
  • FFmpeg (see ffmpeg/ffmpeg.txt for more details)

Installation

  • Unpack the zip-File

  • Make sure, your Java installation is in the PATH environment variable or replace the call to java in the script for your platform with the absolute path to the Java executable, e.g

    "C:\Program Files\Java\jdk1.8.0_192\bin" or /usr/bin/java

  • Run the server once with script for your platform (server-linux.sh, server-macos.sh, server.bat). This will create the settings file, which you can use to configure the server. You can find it here:

    Windows: Press Windows + r, type %appdata%\ctbrec, press OK

    Linux: ~/.config/ctbrec

    macOS: Library/Preferences/ctbrec in your user home

  • When you are done with the configuration, start the server again

  • Start the ctbrec application, go to settings and set the Record Location to Remote and set Server and Port to point to your server.

  • If you want to restrict access to server you can switch on HMAC authentication by enabling Require authentication. The application will generate a key and display it in a text field. Copy the line, stop the server, and paste the line into the server config in the first line after the {. Insert a comma , at the end of the line.

  • Start the server again. You should now see a line like 12:58:37.540 [main] INFO ctbrec.recorder.server.HttpServer - HMAC authentication is enabled in the server log.

Docker

There is a docker image, created by Github user 1461748123, which you can find on Docker Hub

You can also build your own image with the Dockerfile included.

To run them, execute the following command : docker run -d -p 8080:8080 -v /ctb/app/config:/root/.config/ctbrec/ -v /ctb/video:/root/ctbrec 0xboobface/ctbrec

You can also use the docker-compose with command : docker-compose up

License

CTB Recorder is licensed under the GPLv3. See LICENSE.txt.