forked from TrueCloudLab/frostfs-dev-env
[#241] http: Provide common params with .yml
file
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
parent
94ca437180
commit
f549ef7d39
3 changed files with 22 additions and 11 deletions
|
@ -1,9 +0,0 @@
|
||||||
HTTP_GW_SERVER_0_ADDRESS=0.0.0.0:80
|
|
||||||
|
|
||||||
HTTP_GW_LOGGER_LEVEL=info
|
|
||||||
|
|
||||||
HTTP_GW_REBALANCE_TIMER=5m
|
|
||||||
HTTP_GW_CONNECT_TIMEOUT=60s
|
|
||||||
HTTP_GW_REQUEST_TIMEOUT=300s
|
|
||||||
|
|
||||||
HTTP_GW_RESOLVE_ORDER=nns
|
|
20
services/http_gate/cfg/config.yml
Normal file
20
services/http_gate/cfg/config.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
logger:
|
||||||
|
level: debug
|
||||||
|
|
||||||
|
rebalance_timer: 5m # Interval to check nodes health
|
||||||
|
|
||||||
|
connect_timeout: 60s # Timeout to dial node
|
||||||
|
|
||||||
|
request_timeout: 300s # Timeout to check node health during rebalance
|
||||||
|
|
||||||
|
# The order in which resolvers are used to find an container id by name
|
||||||
|
resolve_order:
|
||||||
|
- nns
|
||||||
|
|
||||||
|
server:
|
||||||
|
- address: 0.0.0.0:80
|
||||||
|
|
||||||
|
# Wallet settings
|
||||||
|
wallet:
|
||||||
|
path: /wallet.json # Path to wallet
|
||||||
|
passphrase: one # Passphrase to decrypt wallet
|
|
@ -15,11 +15,11 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./wallet.json:/wallet.json
|
- ./wallet.json:/wallet.json
|
||||||
- ./../../vendor/hosts:/etc/hosts
|
- ./../../vendor/hosts:/etc/hosts
|
||||||
|
- ./cfg:/etc/frostfs/http
|
||||||
stop_signal: SIGKILL
|
stop_signal: SIGKILL
|
||||||
env_file: [ ".env", ".http.env", ".int_test.env" ]
|
env_file: [ ".env", ".http.env", ".int_test.env" ]
|
||||||
|
command: [ "frostfs-http-gw", "--config", "/etc/frostfs/http/config.yml" ]
|
||||||
environment:
|
environment:
|
||||||
- HTTP_GW_WALLET_PATH=/wallet.json
|
|
||||||
- HTTP_GW_WALLET_PASSPHRASE=one
|
|
||||||
- HTTP_GW_RPC_ENDPOINT=http://morph-chain.${LOCAL_DOMAIN}:30333
|
- HTTP_GW_RPC_ENDPOINT=http://morph-chain.${LOCAL_DOMAIN}:30333
|
||||||
- HTTP_GW_PEERS_0_ADDRESS=s01.${LOCAL_DOMAIN}:8080
|
- HTTP_GW_PEERS_0_ADDRESS=s01.${LOCAL_DOMAIN}:8080
|
||||||
- HTTP_GW_PEERS_0_WEIGHT=0.2
|
- HTTP_GW_PEERS_0_WEIGHT=0.2
|
||||||
|
|
Loading…
Reference in a new issue