Categorygithub.com/long2ice/s3web
modulepackage
0.0.0-20241018081546-f535dfbe97d6
Repository: https://github.com/long2ice/s3web.git
Documentation: pkg.go.dev

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

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author