# s3http **Repository Path**: Zhou-Tx/s3http ## Basic Information - **Project Name**: s3http - **Description**: Transfer S3 service to http service. - **Primary Language**: Shell - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-14 - **Last Updated**: 2025-04-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # S3HTTP Transfer S3 service to http service. ## Core middleware - s3fs-fuse ```bash # apk add -U s3fs-fuse s3fs ${bucket_name} ${local_path} \ -o use_path_request_style \ -o url=${url} \ -o umask=377 ``` ## Getting Started Start with command (*Example*): ```bash docker run -d \ --restart=always \ --name=s3http \ --privileged \ -p '8000:80' \ -e 'S3_URL=http://192.168.1.1:9000' \ -e 'S3_USER=admin' \ -e 'S3_PASSWORD=admin' \ -e 'S3_BUCKET_LIST=bucket1,bucket2' \ repigeons/s3http ``` ### Environment variables |variable |type |required|description |example | |:------------:|:----:|:------:|:----------------------------------:|:-------------------:| |S3_URL |string|true |s3 url address. |http://127.0.0.1:9000| |S3_USER |string|true |a user having access to the buckets.|admin | |S3_PASSWORD |string|true |the password of the user. | | |S3_BUCKET_LIST|string|true |bucket name list ( split with ',' ) |bucket1,bucket2 | ### HTTP Request - Format ```text GET / HTTP/1.1 Bucket: ``` - Description: |variable|position |description |example | |:------:|:---------:|:------------------------------:|:---------------:| |filepath|http path |the path of a file in the bucket|/directory1/file1| |bucket |http header|the bucket name |bucket1 | - Example ```text GET /filepath/filename HTTP/1.1 Bucket: bucket1 ...... ```