Code Monkey home page Code Monkey logo

deletebin-server's Introduction

DeleteBin Server

This is the small server-side component of DeleteBin.org written in Go. It is used to service API requests. The goals of this project include:

  • Keep things secure
  • Keep things simple
  • Be transparent
  • Get valuable contributions to improve

Database

BadgerDB is used to store all values. Any key-value database could be used, but BadgerDB does offer some nice built-in features (i.e. values can have a TTL associated with them) along with good performance.

Recommended Environment

We run this server process in an isolated read-only container (only the database mount is writable), as a limited user/group, with all Linux capabilities removed, in its own SELinux context. In other words, it is recommended to limit the server process to absolutely only what it needs... and nothing else. Additionally, we run this process behind a dedicated web server process which handles issues such as rate limits, capping request size, etc.

Usage

All server config values are stored in a JSON config file. The only command switch specifies the path to the config file: -config

Example config

Here is an example config file:

{
    "DBPath": "/path/to/database",
    "Debug": true,
    "Listen": ":12345",
    "HCSiteKey": "abc123",
    "HCSecret": "abc123",
    "AbuseMail": "[email protected]",
    "Mail": "[email protected]",
    "RealIPHeader": "X-Real-IP",
    "RTLRRMinRange": 100,
    "RTLRRMinRatio": 0.05,
    "RTLRR": {}
}

deletebin-server's People

Contributors

caffeinejolt avatar

Stargazers

 avatar

Watchers

 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.