Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
QB_DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5432/qb
QB_BIND_ADDR=127.0.0.1:8080
QB_EXPORT_DIR=./exports
QB_OBJECT_STORE_DIR=./objects
QB_MAX_DB_CONNECTIONS=10
QB_CORS_ORIGINS=http://localhost:3000,http://localhost:5173
QB_JWT_SECRET=qb-dev-secret-change-me-in-production
55 changes: 54 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "qb_api"
version = "1.1.1"
version = "1.2.0"
edition = "2021"

[dependencies]
Expand All @@ -9,13 +9,15 @@ argon2 = "0.5"
axum = { version = "0.7", features = ["multipart"] }
chrono = { version = "0.4", features = ["serde"] }
csv = "1"
flate2 = "1"
jsonwebtoken = "9"
mime_guess = "2"
regex = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.10"
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio-rustls", "postgres", "chrono"] }
tar = "0.4"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "net", "fs", "signal"] }
tokio-util = { version = "0.7", features = ["io"] }
tower-http = { version = "0.6", features = ["cors", "trace"] }
Expand Down
1 change: 1 addition & 0 deletions compose.prod.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ QB_JWT_SECRET=change-this-to-a-long-random-string
QB_BIND_PORT=8080
QB_MAX_DB_CONNECTIONS=20
QB_EXPORT_DIR=/var/lib/qb/exports
QB_OBJECT_STORE_DIR=/var/lib/qb/objects
QB_CORS_ORIGINS=https://your-frontend.example.com
QB_IMAGE_NAME=qb_api
QB_IMAGE_TAG=latest
4 changes: 4 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@ services:
db:
condition: service_healthy
environment:
RUST_LOG: qb_api=info,tower_http=info
QB_DATABASE_URL: ${QB_DATABASE_URL}
QB_BIND_ADDR: 0.0.0.0:8080
QB_EXPORT_DIR: ${QB_EXPORT_DIR:-/var/lib/qb/exports}
QB_MAX_DB_CONNECTIONS: ${QB_MAX_DB_CONNECTIONS:-20}
QB_CORS_ORIGINS: ${QB_CORS_ORIGINS:-}
QB_JWT_SECRET: ${QB_JWT_SECRET}
QB_OBJECT_STORE_DIR: ${QB_OBJECT_STORE_DIR:-/var/lib/qb/objects}
ports:
- "${QB_BIND_PORT:-8080}:8080"
volumes:
- qb_object_store:${QB_OBJECT_STORE_DIR:-/var/lib/qb/objects}
- qb_exports:${QB_EXPORT_DIR:-/var/lib/qb/exports}
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8080/health >/dev/null || exit 1"]
Expand All @@ -46,4 +49,5 @@ services:

volumes:
qb_postgres_data:
qb_object_store:
qb_exports:
Loading
Loading