mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
docs: update README files to include first user admin role configuration
This commit is contained in:
@@ -43,6 +43,7 @@ You can configure the application using environment variables. When using Docker
|
|||||||
- `JwtSettings__Secret`: A secure string used for signing JWT tokens.
|
- `JwtSettings__Secret`: A secure string used for signing JWT tokens.
|
||||||
- `AuthSettings__CF_Turnstile_SecretKey`: Your Cloudflare Turnstile secret key.
|
- `AuthSettings__CF_Turnstile_SecretKey`: Your Cloudflare Turnstile secret key.
|
||||||
- `AuthSettings__CF_Turnstile_SiteKey`: Your Cloudflare Turnstile site key.
|
- `AuthSettings__CF_Turnstile_SiteKey`: Your Cloudflare Turnstile site key.
|
||||||
|
- `AuthSettings__First_User_Admin`: Gives the first user the admin role, it is recommended to disable this after use.
|
||||||
- `ASPNETCORE_ENVIRONMENT`: Set to `Production` or `Development`.
|
- `ASPNETCORE_ENVIRONMENT`: Set to `Production` or `Development`.
|
||||||
|
|
||||||
#### Frontend (SharpbinV3.Client)
|
#### Frontend (SharpbinV3.Client)
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ This is the backend API for SharpbinV3, built with ASP.NET Core and Entity Frame
|
|||||||
|
|
||||||
The server configuration is managed in `appsettings.json`. For development, ensure you have set the following in `appsettings.Development.json` or as environment variables:
|
The server configuration is managed in `appsettings.json`. For development, ensure you have set the following in `appsettings.Development.json` or as environment variables:
|
||||||
|
|
||||||
- `ConnectionStrings:DefaultConnection`: The SQLite connection string (e.g., `Data Source=sharpbin.db`).
|
- `ConnectionStrings__DefaultConnection`: SQLite connection string (e.g., `Data Source=/app/data/sharpbin.db`).
|
||||||
- `JwtSettings:Secret`: A secure key for JWT signing.
|
- `JwtSettings__Secret`: A secure string used for signing JWT tokens.
|
||||||
- `AuthSettings:CF_Turnstile_SecretKey`: Your Cloudflare Turnstile secret key (if using captcha).
|
- `AuthSettings__CF_Turnstile_SecretKey`: Your Cloudflare Turnstile secret key.
|
||||||
- `AuthSettings:CF_Turnstile_SiteKey`: Your Cloudflare Turnstile site key (if using captcha).
|
- `AuthSettings__CF_Turnstile_SiteKey`: Your Cloudflare Turnstile site key.
|
||||||
|
- `AuthSettings__First_User_Admin`: Gives the first user the admin role, it is recommended to disable this after use.
|
||||||
|
|
||||||
### Database Migrations
|
### Database Migrations
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user