Giter VIP home page Giter VIP logo

sweetpaste's Introduction

sweetpaste

sweetpaste is a sweet n' simple pastebin server. It's completely server-side, with zero client-side code.

Configuration

The configuration will be loaded from a file named config.toml in the working directory.

Config Option Description Default
address The address to bind to. 127.0.0.1:8080
site-url The base URL of the site to bind to. Should not contain a trailing slash! http://127.0.0.1:8080
public Whether this instance is public or not. If this is false, the password is needed to submit pastes. false
static-dir The directory to serve static files from. These take priority over pastes! None
paste-limit The maximum size, in bytes, of a single paste. 8 MB
cache-limit The maximum size, in bytes, of the in-memory cache, used to avoid re-rendering pastes. 64 MB
db-path The path to the SQLite database file. sweetpaste.db
password A password, used for uploading on non-public instances, and deleting any paste. secret
id-key The 32-byte encryption key used to encrypt the paste ID. sweetpaste will refuse to start if this is all zeroes! 0000...
trusted-ips A list of IP addresses which will be trusted to provide X-Real-IP/X-Forwarded-For headers ["127.0.0.1", "::1"]
syntax-highlighting.theme The theme to use for syntax highlighting base16-eighties.dark
syntax-highlighting.themes-folder The folder to load .tmTheme files from None
syntax-highlighting.syntax-folder The folder to load .tmLanguage files from None

All code is licensed under the MPLv2 License.

sweetpaste's People

Contributors

absolucy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.