timvisee 1a923d21b5 Add DEFAULT_DOWNLOADS variable to set default download count 3 years ago
..
bin 3165086869 Remove legal page, add no affiliation text in footer 4 years ago
middleware 4f273eca03 added oauth refresh token support 4 years ago
routes 1a923d21b5 Add DEFAULT_DOWNLOADS variable to set default download count 3 years ago
storage 175712cfbd Add REDIS_USER and REDIS_DB configuration variables 3 years ago
clientConstants.js 1a923d21b5 Add DEFAULT_DOWNLOADS variable to set default download count 3 years ago
config.js 1a923d21b5 Add DEFAULT_DOWNLOADS variable to set default download count 3 years ago
fxa.js 017bb0d146 wrap openid-config request in try/catch 6 years ago
initScript.js 6960cc75fa Add configurable donate, CLI and DMCA and source links in footer 4 years ago
layout.js 3e14d3049d only index / route 6 years ago
limiter.js 7f9674f494 fixed size limit on server to include crypto overhead 6 years ago
locale.js c80f9ada65 updated deps 5 years ago
log.js 53e822964e a few changes to make A/B testing easier 7 years ago
metadata.js 3fd2537311 refactored server 7 years ago
readme.md f3fb433531 Fix link to dev.js and prod.js files. 6 years ago
state.js 02e8cb264f Add detect_base_url config 3 years ago

readme.md

Server Code

The server provides the API, serves static assets, and renders the pages for Send. The production entrypoint is prod.js and the development entrypoint is dev.js via webpack-dev-server.

Server configuration

config.js contains the schema for our configuration options. Environment variables are the preferred method for setting configuration.

Middleware

Contains authentication and localization middleware.

Routes

Contains all the server routes and handlers for the API and pages

Storage

Contains implementations of possible storage engines for the files and metadata