buckit

command module
v0.0.0-...-9caeb5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Buckit

Buckit is a simple "server" that sits in front of S3 and serves protected content - no need to expose your S3 bucket to the world or enable bucket website mode.

Features

  • Multiple buckets are supported
  • Each bucket can have custom credentials
  • Dynamic config

Running Buckit

  1. Create a buckit config file: .buckit.yaml. Example:
Port: 9006
ShutdownTimeout: 20s
Buckits:
  - HostName: foo.com
    BucketName: foo-source-bucket
    Region: us-east-1
  - HostName: bar.com
    BucketName: bar-source-bucket
    Region: us-east-1
  1. Run buckit
  • Running via Docker
    • docker run --rm --name buckit -v $PWD/.buckit.yaml:/.buckit.yaml ghcr.io/urjitbhatia/buckit:master -c /.buckit.yaml"
  • Running directly from source
    • go run main.go
  1. Fetch content from your bucket curl -H"Host:foo.com" localhost:9006/index.html

Documentation

Overview

Copyright © 2021 Urjit Singh Bhatia

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL