mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
dependabot/npm_and_yarn/SharpbinV3.Client/npm_and_yarn-275026e82a
Bumps the npm_and_yarn group with 3 updates in the /SharpbinV3.Client directory: [brace-expansion](https://github.com/juliangruber/brace-expansion), [js-yaml](https://github.com/nodeca/js-yaml) and [postcss-selector-parser](https://github.com/postcss/postcss-selector-parser). Updates `brace-expansion` from 1.1.12 to 1.1.18 - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.12...v1.1.18) Updates `js-yaml` from 4.2.0 to 4.3.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/compare/4.2.0...4.3.2) Updates `postcss-selector-parser` from 7.1.1 to 7.1.5 - [Release notes](https://github.com/postcss/postcss-selector-parser/releases) - [Changelog](https://github.com/postcss/postcss-selector-parser/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss-selector-parser/compare/v7.1.1...7.1.5) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.18 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: js-yaml dependency-version: 4.3.2 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: postcss-selector-parser dependency-version: 7.1.5 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com>
fix: set default value for AuthSettings__First_User_Admin and pass GIT_COMMIT_HASH as build argument
SharpbinV3
Sharpbin is a pastebin-style website built with ASP.NET Core and SvelteKit.
A live instance is available at sharpbin.cc.
Features
- User authentication and account management.
- Syntax highlighting for various programming languages.
- Private pastes with client-side encryption.
- Raw text serving for easy sharing and scripting.
- Paste editing including content, syntax, title, and expiration.
- Configurable paste expiration.
- Server-side paste compression to save storage.
- Captcha support via Cloudflare Turnstile.
Getting Started
The easiest way to run SharpbinV3 is using Docker Compose.
- Ensure Docker and Docker Compose are installed.
- Clone the repository.
git clone https://github.com/whoswhip/Sharpbin.git
- Run the following command in the root directory:
docker-compose up -d
Configuration
You can configure Sharpbin using environment variables or appsettings.json. When using Docker Compose, these can be set in the docker-compose.yml file.
When configuring via
appsettings.jsoninstead of for exampleConnectionStrings__DefaultConnectionit would be:
"ConnectionStrings": {
"DefaultConnection": "Data Source=sharpbin.db"
},
Backend (SharpbinV3.Server)
Domain: The domain your instance of Sharpbin will be hosted at (e.g., example.com)Https: Whether or not your instance is behind https. Used when sendings emails.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.AuthSettings__Registration_Enabled:true: Enables/disables registration.AuthSettings__First_User_Admin: Gives the first user the admin role, it is recommended to disable this after use.AuthSettings__Admins_Require_2FA: Enforces Admins to have 2FA when trying to do certain actions.AuthSettings__API_Key_HMAC_Secret: Recommended to securely hash API keys, but is not required.PasteSettings__MaxTitleLength: Max title length in characters.PasteSettings__MaxPasteSizeInBytes:1_048_576 (1MB): Max Paste Size set in bytes.PasteSettings__EnablePasteCompression:true: Enables/Disables server-side paste compression.PasteSettings__RequiresVerification:true: Enables/Disables CAPTCHA verification when creating pastes.PasteSettings__View_HMAC_Secret: Required to securely hash viewer identifiersPasteSettings__View_Internal_API_Key: Enforces views to be counted/recorded only by the frontend, if set it needs to be the same for both backend and frontend.
Frontend (SharpbinV3.Client)
VITE_API_URL: The URL of the backend API (e.g.,http://localhost:8080).VITE_ALLOWED_HOSTS: A comma separated list of allowed hosts (e.g.,localhost,sharpbin.cc)VIEW_INTERNAL_API_KEY: Enforces views to be counted/recorded only by the frontend, if set it needs to be the same for both backend and frontend.
The frontend will be accessible at http://localhost:5173.
Project Structure
- SharpbinV3.Server: Backend API built with C# and ASP.NET Core. Refer to its README for server-side development and configuration.
- SharpbinV3.Client: Frontend application built with SvelteKit and TypeScript. Refer to its README for client-side development and setup.
Description
Mirror of https://github.com/whoswhip/Sharpbin
https://sharpbin.cc
Readme
GPL-3.0
1.5 MiB
Languages
C#
49.5%
Svelte
35.3%
TypeScript
13.3%
HTML
1.1%
CSS
0.3%
Other
0.5%