Code Monkey home page Code Monkey logo

setra's Introduction

Secure Transfer

Build Status

Web application to transfer text messages and files securely.

Prerequisites

This application needs strong cryptography. Either install Java Cryptography Extension (JCE) when using Oracle JDK or use OpenJDK.

Quick start

Use prebuilt docker image osiegmar/setra or create your own via:

./gradlew build
docker build -t secure-transfer .
docker run -d --name secure-transfer secure-transfer

Then call http://[your docker host]:8080

More advanced configuration

docker run \
    --detach \
    --publish 127.0.0.1:8500:8080 \
    --name setra \
    --env SERVER_USE_FORWARD_HEADERS=true \
    osiegmar/setra

And a NGINX proxy configuration:

location / {
    proxy_pass http://localhost:8500/;

    # Keep this value in sync with SECURETRANSFER_MAX_REQUEST_SIZE
    client_max_body_size 2048M;

    proxy_buffering off;
    proxy_request_buffering off;

    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

Configuration properties

Secure Transfer uses Spring Boot and thus offers a wide range of configuration properties. The following is just an overview of the most important options.

  • SECURETRANSFER_BASE_DIR: The base directory where Secure Transfer will create its own directory structure. Default: /securetransfer within the docker build, ${java.io.tmpdir}/securetransfer otherwise.

  • SECURETRANSFER_MAX_FILE_SIZE: Max file size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or Kilobyte size. Default: 2147483648 (2 GB)

  • SECURETRANSFER_MAX_REQUEST_SIZE: Max request size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or Kilobyte size. Default: 2147483648 (2 GB)

  • SERVER_USE_FORWARD_HEADERS: If X-Forwarded-* headers should be applied to the HttpRequest. Default: false

  • SPRING_MVC_ASYNC_REQUEST_TIMEOUT: The maximum duration (in milliseconds) for a file download. Default: 3600000 ms (1 hour)

setra's People

Contributors

osiegmar avatar cc-cpo avatar

Stargazers

Samuel Lissner 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.