mirror of
https://codeberg.org/librarian/stream-proxy
synced 2024-12-06 19:26:34 +01:00
Add instructions [skip ci]
This commit is contained in:
@@ -2,4 +2,40 @@
|
||||
A streaming proxy for livestreams and videos for [Librarian](https://codeberg.org/librarian/librarian).
|
||||
|
||||
## Usage
|
||||
TO-DO
|
||||
stream-proxy should be run seperately on another domain using a reverse proxy such as [Caddy](https://caddyserver.com/).
|
||||
|
||||
### Docker (recommended)
|
||||
Add the following to your `docker-compose.yml` file. Images for arm64 are currently unavailable, follow the instructions to build from source.
|
||||
```
|
||||
stream-proxy:
|
||||
image: registry.gitlab.com/overtime-zone-wildfowl/stream-proxy:latest
|
||||
ports:
|
||||
- 3001:3001
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
To start, run `sudo docker-compose up -d`. Enable in Librarian by adding the following to your `config.yml` file, then restart Librarian:
|
||||
```
|
||||
ENABLE_LIVE_STREAM: true
|
||||
LIVE_STREAMING_URL: 'https://your.domain.tld/live'
|
||||
```
|
||||
|
||||
### Build from source
|
||||
You will need to install [Rust](https://rustup.rs/). Then run the following commands:
|
||||
```sh
|
||||
git clone https://codeberg.org/librarian/stream-proxy
|
||||
cd stream-proxy
|
||||
```
|
||||
|
||||
To build:
|
||||
```sh
|
||||
cargo build --release
|
||||
```
|
||||
|
||||
The output will be at `target/release/stream-proxy` and can be run with the command `./target/release/stream-proxy`.
|
||||
|
||||
Enable in Librarian by adding the following to your `config.yml` file, then restart Librarian:
|
||||
```
|
||||
ENABLE_LIVE_STREAM: true
|
||||
LIVE_STREAMING_URL: 'https://your.domain.tld/live'
|
||||
```
|
||||
Reference in New Issue
Block a user