Skip to content

Repository files navigation

filehost2

Somewhat minimalistic file hosting service.

config

via env vars, see src/settings.rs

run

migrations:

./filehost2 migrate

the thing itself:

cargo run --release

dev

tests:

SQLX_OFFLINE=true cargo test

mariadb container blah:

podman run --rm -p 3306:3306 -e MARIADB_DATABASE=filehost -e MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true --cgroup-manager=cgroupfs mariadb:latest &
export DATABASE_URL=mysql://root@127.0.0.1:3306/filehost
cargo run migrate
cargo run

sqlx offline cache:

cargo sqlx prepare

NSFW detection

use model OwenElliott/image-safety-classifier-xs

About

im not good with computers

Resources

Stars

27 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages