im not good with computers
Find a file
2026-03-30 22:20:09 +02:00
.github/workflows test plz work 2026-03-30 22:18:18 +02:00
.sqlx test plz work 2026-03-30 22:18:18 +02:00
migrations stuff and things 2026-03-30 22:15:09 +02:00
src add the bloody tests 2026-03-30 22:20:09 +02:00
templates blah 2026-03-30 12:36:01 +02:00
.gitignore init 2026-03-29 13:18:32 +02:00
Cargo.lock stuff and things 2026-03-30 22:15:09 +02:00
Cargo.toml stuff and things 2026-03-30 22:15:09 +02:00
README.md blah 2026-03-30 12:36:01 +02:00

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