2022-04-12 22:29:51 +00:00
|
|
|
# Wallet
|
|
|
|
# Path to wallet
|
2022-07-28 13:26:42 +00:00
|
|
|
S3_GW_WALLET_PATH=/path/to/wallet.json
|
2022-04-12 22:29:51 +00:00
|
|
|
# Account address. If omitted default one will be used.
|
2022-07-28 13:26:42 +00:00
|
|
|
S3_GW_WALLET_ADDRESS=NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP
|
2022-04-12 22:29:51 +00:00
|
|
|
# Passphrase to decrypt wallet.
|
|
|
|
S3_GW_WALLET_PASSPHRASE=s3
|
|
|
|
|
|
|
|
# Nodes
|
|
|
|
# This configuration makes the gateway use the first node (grpc://s01.neofs.devenv:8080)
|
|
|
|
# while it's healthy. Otherwise, gateway uses the second node (grpc://s01.neofs.devenv:8080)
|
|
|
|
# for 10% of requests and the third node (grpc://s03.neofs.devenv:8080) for 90% of requests.
|
|
|
|
# Until nodes with the same priority level are healthy
|
|
|
|
# nodes with other priority are not used.
|
|
|
|
# The lower the value, the higher the priority.
|
|
|
|
S3_GW_PEERS_0_ADDRESS=grpc://s01.neofs.devenv:8080
|
|
|
|
S3_GW_PEERS_0_PRIORITY=1
|
|
|
|
S3_GW_PEERS_0_WEIGHT=1
|
|
|
|
S3_GW_PEERS_1_ADDRESS=grpc://s02.neofs.devenv:8080
|
|
|
|
S3_GW_PEERS_1_PRIORITY=2
|
|
|
|
S3_GW_PEERS_1_WEIGHT=0.1
|
|
|
|
S3_GW_PEERS_2_ADDRESS=grpc://s03.neofs.devenv:8080
|
|
|
|
S3_GW_PEERS_2_PRIORITY=2
|
|
|
|
S3_GW_PEERS_2_WEIGHT=0.9
|
|
|
|
|
|
|
|
# Address to listen and TLS
|
|
|
|
S3_GW_LISTEN_ADDRESS=0.0.0.0:8080
|
|
|
|
S3_GW_TLS_CERT_FILE=/path/to/tls/cert
|
|
|
|
S3_GW_TLS_KEY_FILE=/path/to/tls/key
|
|
|
|
|
2022-08-30 10:52:37 +00:00
|
|
|
# Domains to be able to use virtual-hosted-style access to bucket.
|
|
|
|
S3_GW_LISTEN_DOMAINS=s3dev.neofs.devenv
|
|
|
|
|
2022-04-12 22:29:51 +00:00
|
|
|
# Config file
|
|
|
|
S3_GW_CONFIG=/path/to/config/yaml
|
|
|
|
|
|
|
|
# Logger
|
|
|
|
S3_GW_LOGGER_LEVEL=debug
|
|
|
|
|
2022-07-22 13:24:35 +00:00
|
|
|
# Endpoint of the tree service. Must be provided. Can be one of the node address (from the `peers` section).
|
|
|
|
S3_GW_TREE_SERVICE=grpc://s01.neofs.devenv:8080
|
|
|
|
|
2022-04-12 22:29:51 +00:00
|
|
|
# RPC endpoint and order of resolving of bucket names
|
2022-04-14 18:10:57 +00:00
|
|
|
S3_GW_RPC_ENDPOINT=http://morph-chain.neofs.devenv:30333/
|
|
|
|
S3_GW_RESOLVE_ORDER="nns dns"
|
2022-04-12 22:29:51 +00:00
|
|
|
|
|
|
|
# Metrics
|
2022-07-26 13:29:07 +00:00
|
|
|
S3_GW_PPROF_ENABLED=true
|
|
|
|
S3_GW_PPROF_ADDRESS=localhost:8085
|
|
|
|
|
|
|
|
S3_GW_PROMETHEUS_ENABLED=true
|
|
|
|
S3_GW_PROMETHEUS_ADDRESS=localhost:8086
|
2022-04-12 22:29:51 +00:00
|
|
|
|
|
|
|
# Timeout to connect to a node
|
2022-07-18 13:11:25 +00:00
|
|
|
S3_GW_CONNECT_TIMEOUT=10s
|
2022-04-12 22:29:51 +00:00
|
|
|
# Timeout to check node health during rebalance.
|
2022-04-14 15:09:57 +00:00
|
|
|
S3_GW_HEALTHCHECK_TIMEOUT=15s
|
2022-04-12 22:29:51 +00:00
|
|
|
# Interval to check node health
|
2022-07-18 13:11:25 +00:00
|
|
|
S3_GW_REBALANCE_INTERVAL=60s
|
2022-07-29 06:26:11 +00:00
|
|
|
# The number of errors on connection after which node is considered as unhealthy
|
|
|
|
S3_GW_POOL_ERROR_THRESHOLD=100
|
2022-04-12 22:29:51 +00:00
|
|
|
|
|
|
|
# Limits for processing of clients' requests
|
|
|
|
S3_GW_MAX_CLIENTS_COUNT=100
|
|
|
|
# Deadline after which the gate sends error `RequestTimeout` to a client
|
|
|
|
S3_GW_MAX_CLIENTS_DEADLINE=30s
|
|
|
|
|
|
|
|
# Caching
|
|
|
|
# Cache for objects
|
|
|
|
S3_GW_CACHE_OBJECTS_LIFETIME=5m
|
|
|
|
S3_GW_CACHE_OBJECTS_SIZE=1000000
|
|
|
|
# Cache which keeps lists of objects in buckets
|
|
|
|
S3_GW_CACHE_LIST_LIFETIME=1m
|
|
|
|
S3_GW_CACHE_LIST_SIZE=100000
|
|
|
|
# Cache which contains mapping of bucket name to bucket info
|
|
|
|
S3_GW_CACHE_BUCKETS_LIFETIME=1m
|
|
|
|
S3_GW_CACHE_BUCKETS_SIZE=1000
|
|
|
|
# Cache which contains mapping of nice name to object addresses
|
|
|
|
S3_GW_CACHE_NAMES_LIFETIME=1m
|
|
|
|
S3_GW_CACHE_NAMES_SIZE=10000
|
|
|
|
# Cache for system objects in a bucket: bucket settings, notification configuration etc
|
|
|
|
S3_GW_CACHE_SYSTEM_LIFETIME=5m
|
|
|
|
S3_GW_CACHE_SYSTEM_SIZE=100000
|
|
|
|
# Cache which stores access box with tokens by its address
|
|
|
|
S3_GW_CACHE_ACCESSBOX_LIFETIME=10m
|
|
|
|
S3_GW_CACHE_ACCESSBOX_SIZE=100
|
2022-10-03 14:36:09 +00:00
|
|
|
# Cache which stores owner to cache operation mapping
|
|
|
|
S3_GW_CACHE_ACCESSCONTROL_LIFETIME=1m
|
|
|
|
S3_GW_CACHE_ACCESSCONTROL_SIZE=100000
|
2022-04-12 22:29:51 +00:00
|
|
|
|
|
|
|
# NATS
|
|
|
|
S3_GW_NATS_ENABLED=true
|
|
|
|
S3_GW_NATS_ENDPOINT=nats://nats.neofs.devenv:4222
|
|
|
|
S3_GW_NATS_TIMEOUT=30s
|
|
|
|
S3_GW_NATS_CERT_FILE=/path/to/cert
|
|
|
|
S3_GW_NATS_KEY_FILE=/path/to/key
|
|
|
|
S3_GW_NATS_ROOT_CA=/path/to/ca
|
|
|
|
|
|
|
|
# Default policy of placing containers in NeoFS
|
|
|
|
# If a user sends a request `CreateBucket` and doesn't define policy for placing of a container in NeoFS, the S3 Gateway
|
|
|
|
# will put the container with default policy. It can be specified via environment variable, e.g.:
|
|
|
|
S3_GW_DEFAULT_POLICY="REP 3"
|
|
|
|
|
|
|
|
# CORS
|
|
|
|
# value of Access-Control-Max-Age header if this value is not set in a rule. Has an int type.
|
|
|
|
S3_GW_CORS_DEFAULT_MAX_AGE=600
|
|
|
|
|
2022-08-11 23:13:02 +00:00
|
|
|
# Parameters of requests to NeoFS
|
|
|
|
# Number of the object copies to consider PUT to NeoFS successful.
|
|
|
|
# If not set, default value 0 will be used -- it means that object will be processed according to the container's placement policy
|
|
|
|
S3_GW_NEOFS_SET_COPIES_NUMBER=0
|
2022-08-31 23:12:02 +00:00
|
|
|
|
|
|
|
# List of allowed AccessKeyID prefixes
|
|
|
|
# If not set, S3 GW will accept all AccessKeyIDs
|
|
|
|
S3_GW_ALLOWED_ACCESS_KEY_ID_PREFIXES=Ck9BHsgKcnwfCTUSFm6pxhoNS4cBqgN2NQ8zVgPjqZDX 3stjWenX15YwYzczMr88gy3CQr4NYFBQ8P7keGzH5QFn
|