This commit is contained in:
Mateusz Gruszczyński
2026-07-20 20:27:05 +02:00
parent 48c92dc382
commit 15ee0ad993
22 changed files with 377 additions and 188 deletions
+30 -4
View File
@@ -1,14 +1,40 @@
# Serwer deweloperski
# Application
APP_HOST=0.0.0.0
APP_PORT=3000
# SQLite
# Port exposed by Docker Compose
RUSTPAD_PORT=8200
# Database
# SQLite — default
DATABASE_URL=sqlite:///data/db/rustpad.db?mode=rwc
# PostgreSQL
# DATABASE_URL=postgres://rustpad:rustpad@postgres:5432/rustpad
# MySQL
# DATABASE_URL=mysql://rustpad:rustpad@mysql:3306/rustpad
DATABASE_MAX_CONNECTIONS=8
# Assety i logowanie
# Static assets
STATIC_DIR=static
ASSET_VERSION=0.0.1
# Logging
RUST_LOG=rustpad=debug,tower_http=info
UPLOAD_MAX_SIZE_MB=20
# Maximum upload size
UPLOAD_MAX_SIZE_MB=20
# Optional PostgreSQL container configuration
POSTGRES_DB=rustpad
POSTGRES_USER=rustpad
POSTGRES_PASSWORD=rustpad
# Optional MySQL container configuration
MYSQL_DATABASE=rustpad
MYSQL_USER=rustpad
MYSQL_PASSWORD=rustpad
MYSQL_ROOT_PASSWORD=rustpad_root