reiizumi/fumi-api

By reiizumi

Updated 3 months ago

Image
0

144

reiizumi/fumi-api repository overview

fumi-api

REST API server for fumi — manga collection tracker. Compiled Bun binary serving a Hono HTTP API with Drizzle ORM and PostgreSQL.


Prerequisites

  • Docker 24+

Database Setup

Run the database migrations before starting the server:

docker run --rm \
  -e DATABASE_URL=postgres://user:password@host:5432/fumi \
  fumi-api:1.0.0 migrate

Running

Start the server with the minimum required environment variables:

docker run --rm \
  -e DATABASE_URL=postgres://user:password@host:5432/fumi \
  -e OIDC_ISSUER=https://your-idp.example.com/realms/fumi \
  -e MANGADEX_CLIENT_ID=your-client-id \
  -e MANGADEX_CLIENT_SECRET=your-client-secret \
  -e MANGADEX_USERNAME=your-username \
  -e MANGADEX_PASSWORD=your-password \
  -p 3000:3000 \
  fumi-api:1.0.0

Environment Variables

VariableDescriptionDefaultRequired
DATABASE_URLPostgreSQL connection stringYes
OIDC_ISSUEROIDC issuer URL for JWT validationYes
MANGADEX_CLIENT_IDMangaDex OAuth2 client IDYes
MANGADEX_CLIENT_SECRETMangaDex OAuth2 client secretYes
MANGADEX_USERNAMEMangaDex account usernameYes
MANGADEX_PASSWORDMangaDex account passwordYes
PORTServer port3000No
OTEL_SERVICE_NAMEOpenTelemetry service namefumi-apiNo
OTEL_EXPORTER_OTLP_ENDPOINTOTLP collector endpointNo
OTEL_TRACES_EXPORTERTraces exporter (otlp or none)otlpNo
OTEL_METRICS_EXPORTERMetrics exporter (otlp or none)otlpNo
OTEL_LOGS_EXPORTERLogs exporter (otlp or none)otlpNo
OTEL_TRACES_SAMPLERTrace sampler strategyparentbased_traceidratioNo
OTEL_TRACES_SAMPLER_ARGSampling ratio (0.0 - 1.0)0.1No

Moon.cat - GitLab Repository

Tag summary

Content type

Image

Digest

sha256:704b8fe71

Size

47.8 MB

Last updated

3 months ago

docker pull reiizumi/fumi-api:1.1.5