Dim, a media manager fueled by dark forces
Brendon Walsh 3ccb4ab05f Authorization middleware supports cookie or authorization header (#594) | 10 месяцев назад | |
---|---|---|
.cargo | 2 лет назад | |
.github | 1 год назад | |
.vscode | 1 год назад | |
bin | 1 год назад | |
dim | 1 год назад | |
dim-auth | 1 год назад | |
dim-core | 11 месяцев назад | |
dim-database | 11 месяцев назад | |
dim-events | 1 год назад | |
dim-extern-api | 11 месяцев назад | |
dim-utils | 1 год назад | |
dim-web | 10 месяцев назад | |
docs | 3 лет назад | |
ui | 11 месяцев назад | |
.dockerignore | 3 лет назад | |
.gitattributes | 3 лет назад | |
.gitignore | 2 лет назад | |
.mailmap | 2 лет назад | |
.rgignore | 3 лет назад | |
CONTRIBUTING.md | 1 год назад | |
Cargo.lock | 10 месяцев назад | |
Cargo.toml | 1 год назад | |
Dockerfile | 1 год назад | |
LICENSE.md | 2 лет назад | |
README.md | 1 год назад | |
SECURITY.md | 1 год назад | |
deny.toml | 4 лет назад | |
docker-compose-template.yml | 2 лет назад | |
rust-toolchain | 2 лет назад | |
rustfmt.toml | 1 год назад | |
yarn.lock | 2 лет назад |
Dim is a self-hosted media manager. With minimal setup, Dim will organize and beautify your media collections, letting you access and play them anytime from anywhere.
You can then obtain binaries from the release tab in github:
unzip ./release-linux.zip && tar -xvzf ./release.tar.gz
cd release && ./dim
http://0.0.0.0:8000
(assuming it's running locally.)The following command runs dim on port 8000, storing configuration in $HOME/.config/dim
.
You may change that path if you'd like to store configuration somewhere else.
You can mount as many directories containing media as you like by repeating the -v HOST_PATH:CONTAINER_PATH
option.
In this example, the path /media
on the host is made available at the same path inside the Docker container.
This name "media" is arbitrary and you can choose whatever you like.
docker run -d -p 8000:8000/tcp -v $HOME/.config/dim:/opt/dim/config -v /media:/media:ro ghcr.io/dusk-labs/dim:dev
Mutiarch image resides at ghcr.io/dusk-labs/dim:master
To use hardware acceleration, mount the relevant device:
docker run -d -p 8000:8000/tcp -v $HOME/.config/dim:/opt/dim/config -v /media:/media:ro --device=/dev/dri/renderD128 ghcr.io/dusk-labs/dim:dev
Refer to docker-compose-template.yaml to run dim using Docker Compose.
To run from source, you'll first need to install the following dependencies on your system:
Once the dependencies are installed, clone the repository and build the project:
git clone https://github.com/Dusk-Labs/dim
yarn --cwd ui/ && yarn --cwd ui/ build
mkdir utils && ln -nfs $(which ffmpeg) utils/ffmpeg && ln -nfs $(which ffprobe) utils/ffprobe
If you're on Linux, run dim with:
cargo run --features vaapi --release
On other platforms where libva isn't available, run dim with:
cargo run --release
Dim is licensed under the AGPLv3 license (see LICENSE.md or https://opensource.org/licenses/AGPL-3.0)