# Copy to .env and fill in real values. .env is git-ignored. # --- Application --- APP_NAME=paper-doc API DEBUG=true # --- Database (TiDB) --- # Local development reaches TiDB through its k3s NodePort. # Inside the cluster, use the Service instead: DB_HOST=tidb-tidb.tidb, DB_PORT=4000 DB_HOST=192.168.1.88 DB_PORT=32738 DB_USER=Govin DB_PASSWORD=change-me DB_NAME=paper_doc # Optional: bypass the DB_* parts above with a full SQLAlchemy URL. # The password must be percent-encoded (a raw '@' would be parsed as the # user/host separator). Prefer the DB_* parts above and let the app encode it. # DATABASE_URL=mysql+pymysql://Govin:change-me%40123@192.168.1.88:32738/paper_doc # --- Object storage (MinIO) — where the images a paper embeds are kept --- # Leave these empty and the paper still writes and reads; only the image # endpoints answer 503, saying exactly which variables are missing. # The bucket is created on the first upload if it does not exist yet, so a # dedicated access key with read/write on that one bucket is enough. # Inside the cluster, use the Service: http://minio.minio.svc.cluster.local:9000 MINIO_ENDPOINT=http://192.168.1.88:30090 MINIO_ACCESS_KEY=change-me MINIO_SECRET_KEY=change-me MINIO_BUCKET=paper-images MINIO_REGION=us-east-1 # Largest image accepted, in bytes (default 20 MiB). # MAX_IMAGE_BYTES=20971520