GithubHelp home page GithubHelp logo

dot-cafe / beam.cafe.backend Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 2.0 743 KB

๐ŸŽ’ Backend for beam.cafe.

Home Page: https://beam.cafe/

TypeScript 67.00% HTML 14.90% JavaScript 8.27% Dockerfile 0.44% SCSS 9.40%
beam-cafe

beam.cafe.backend's Introduction

Logo

Beam up something. Instantly. Anonymously.


CD Status CI Status Current version Support me


This is the official backend for beam.cafe, check out the main repository!


Configuration:

The configuration consists of three files, the default.json with default values, a development.json with development-specific values and a production.json version.

A config file consists of the following options, each option is optional and will be merged with the default configuration.

{
    "server": {
        "port": 8080,
        "internalIdSize": 32, // Size of ids used in internal in-memory objects
        "mediaStreamChunkSize": 4096000 // Maximum size of a chunk used in streaming
    },
    "security": {
        "fileKeySize": 8, // File-key size, used as part of the download-link - the longer the better
        "streamKeySize": 64, // Access-key size for streams - the longer the better
        "downloadKeySize": 64, // Access-key size for downloads - the longer the better
        "downloadKeyMaxAge": 60000, // Maximum age of a download key until its used - the shorter the better
        "clientWebSocketTimeout": 15000, // Timout for a websocket without a session - the shorter the better
        "clientWebSocketSessionTimeout": 900000, // Timeout for web-socket connections
        "clientWebSocketSessionKeySize": 64, // Size of a session-key - the longer the better
        "transferLimit": 50000000000, // Transferlimit for the uploader (ip-based) - used to prevent abuse (50GB)
        "transferLimitResetInterval": 86400000 // Expiration date for the transfer-limit (1d)
    },
    "logs": {
        "logUserAgent": true, // If the user-agent of each client should be logged
        "logLevels": [ // Log-level filter
            "FATAL",
            "ERROR",
            "WARNING",
            "INFO",
            "DEBUG"
        ]
    }
}

Logs are saved in ./.logs relative to the location of where the application got launched.

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.