docs: update configuration details for backend and frontend in README files

This commit is contained in:
2026-01-06 15:02:59 -05:00
parent 8bc031a13c
commit edd94c45e8
2 changed files with 18 additions and 1 deletions
+16
View File
@@ -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.
+2 -1
View File
@@ -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