s3web

command module
v0.0.0-...-10e9fe2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

README

s3web

Serve static websites from any S3 compatible object storage endpoints.

Usage

You can use docker-compose to run s3web:

version: "3"
services:
  s3web:
    image: ghcr.io/long2ice/s3web/s3web
    network_mode: host
    restart: always
    volumes:
      - ./config.yaml:/config.yaml

Configuration

This is example of the configuration file:

server:
  listen: 0.0.0.0:8080
  logTimezone: Asia/Shanghai
  logTimeFormat: '2006-01-02 15:04:05.000000'
  compressLevel: 0
s3:
  endpoint: localhost:9000
  secure: false
  accessKey: minio
  secretKey: minio123
  bucket: mybucket
  region: us-east-1
sites:
  - domains: 
      - localhost # domain name
    subFolder: / # sub folder
    spa: false # single page application
    index: index.html # index file

Credits

  • s3www, base project for s3web improvement.

License

This project is licensed under the Apache-2.0 License.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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