mirror of
https://gh.wpcy.net/https://github.com/hochenggang/simple-php-s3-server.git
synced 2026-07-14 11:06:38 +08:00
29 lines
755 B
Bash
29 lines
755 B
Bash
# PHP S3 Compatible Gateway Configuration
|
|
|
|
# Data storage directory
|
|
DATA_DIR=./data
|
|
|
|
# Allowed Access Keys (comma-separated)
|
|
ALLOWED_ACCESS_KEYS=key1,key2
|
|
|
|
# Secret Key (for AWS Signature V4 verification)
|
|
# All Access Keys share the same Secret Key
|
|
DEFAULT_SECRET_KEY=secret
|
|
|
|
# Maximum request size (bytes)
|
|
MAX_REQUEST_SIZE=104857600
|
|
|
|
# S3 XML namespace
|
|
S3_XML_NS=http://s3.amazonaws.com/doc/2006-03-01/
|
|
|
|
# CORS configuration
|
|
CORS_ORIGINS=*
|
|
CORS_METHODS=GET,POST,PUT,DELETE,OPTIONS,HEAD
|
|
CORS_HEADERS=Content-Type,Authorization,Content-Range,Range,X-Amz-Copy-Source
|
|
CORS_EXPOSE_HEADERS=ETag,Content-Length,Content-Range
|
|
|
|
# Authentication debug mode (set to true to enable signature debug logging)
|
|
AUTH_DEBUG=false
|
|
|
|
# Application debug mode
|
|
APP_DEBUG=false
|