Giter Club home page Giter Club logo

phoenix616 / s3redirector Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 30 KB

Small server which authenticates with an S3 object storage service, generates signed URLs, and redirects to them. Useful if you don't want to expose your S3 directly or build your own CDN.

Home Page: https://ci.minebench.de/job/s3redirector/

License: GNU Affero General Public License v3.0

Java 100.00%
object-storage s3 s3-client s3-storage s3-website cdn content-delivery

s3redirector's Introduction

S3Redirector

Small server which authenticates with an S3 object storage service, generates signed URLs, and redirects to them. Does not serve any files itself!

While this program includes some basic caching I strongly suggest running this behind a caching reverse proxy like nginx. (Especially if you want to use SSL! Which you should.)

Requires Java 17.

Configuration

The configuration is either done via system properties, a config.properties or environment variables. They are read in that order.

Property Config Environment Default Description
s3r.port port S3R_PORT 8053 The port to listen on
s3r.host host S3R_HOST 127.0.0.1 The host to listen on
s3r.redirectcode redirectcode S3R_REDIRECTCODE 302 The HTTP status code to use for redirects
s3r.accesskey accesskey S3R_ACCESSKEY The access key to use for authentication
s3r.secretkey secretkey S3R_SECRETKEY The secret key to use for authentication
s3r.region region S3R_REGION The region of the S3 service
s3r.bucket bucket S3R_BUCKET The bucket to use
s3r.endpoint endpoint S3R_ENDPOINT The endpoint to use for the S3 service
s3r.expiration expiration S3R_EXPIRATION 3600 The expiration time for signed URLs in secs
s3r.cachesize cachesize S3R_CACHESIZE 10000 The size of the url cache
s3r.debug debug S3R_DEBUG false Whether to enable debug logging of requests

Downloads

Downloads are currently available on the Minebench.de CI server: https://ci.minebench.de/job/s3redirector/

License

This program is licensed under the terms of the AGPLv3.

 Copyright (C) 2023 Max Lee aka Phoenix616 ([email protected])

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as published
 by the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU Affero General Public License for more details.

 You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

s3redirector's People

Contributors

phoenix616 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.