From edd94c45e8618d7605a1623623f7c82cbd144253 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Tue, 6 Jan 2026 15:02:59 -0500 Subject: [PATCH] docs: update configuration details for backend and frontend in README files --- README.md | 16 ++++++++++++++++ SharpbinV3.Server/README.md | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dfa2e34..2565ed9 100644 --- a/README.md +++ b/README.md @@ -33,4 +33,20 @@ git clone https://github.com/whoswhip/Sharpbin.git docker-compose up -d ``` +### Configuration + +You can configure the application using environment variables. When using Docker Compose, these can be set in the `docker-compose.yml` file. + +#### Backend (SharpbinV3.Server) + +- `ConnectionStrings__DefaultConnection`: SQLite connection string (e.g., `Data Source=/app/data/sharpbin.db`). +- `JwtSettings__Secret`: A secure string used for signing JWT tokens. +- `AuthSettings__CF_Turnstile_SecretKey`: Your Cloudflare Turnstile secret key. +- `AuthSettings__CF_Turnstile_SiteKey`: Your Cloudflare Turnstile site key. +- `ASPNETCORE_ENVIRONMENT`: Set to `Production` or `Development`. + +#### Frontend (SharpbinV3.Client) + +- `VITE_API_URL`: The URL of the backend API (e.g., `http://localhost:8080`). + The frontend will be accessible at http://localhost:5173. diff --git a/SharpbinV3.Server/README.md b/SharpbinV3.Server/README.md index b04a45c..f8c0825 100644 --- a/SharpbinV3.Server/README.md +++ b/SharpbinV3.Server/README.md @@ -15,7 +15,8 @@ The server configuration is managed in `appsettings.json`. For development, ensu - `ConnectionStrings:DefaultConnection`: The SQLite connection string (e.g., `Data Source=sharpbin.db`). - `JwtSettings:Secret`: A secure key for JWT signing. -- `CloudflareSettings:TurnstileSecret`: Your Cloudflare Turnstile secret key (if using captcha). +- `AuthSettings:CF_Turnstile_SecretKey`: Your Cloudflare Turnstile secret key (if using captcha). +- `AuthSettings:CF_Turnstile_SiteKey`: Your Cloudflare Turnstile site key (if using captcha). ### Database Migrations