im not good with computers
Find a file
2026-06-10 19:37:15 +02:00
.github/workflows test plz work 2026-03-30 22:18:18 +02:00
.sqlx handle mime types 2026-04-25 19:54:01 +02:00
migrations add missing migration 2026-06-10 19:37:15 +02:00
src rate limit: add burst 2026-06-10 19:22:15 +02:00
templates index: link to correct repo 2026-06-06 14:43:08 +02:00
.gitignore init 2026-03-29 13:18:32 +02:00
Cargo.lock md5->blake3 and hash while receiving file 2026-06-08 21:01:57 +02:00
Cargo.toml add rate limiting 2026-06-10 10:07:30 +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