Add HTTP Gate

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
Evgeniy Kulikov 2020-11-27 17:02:49 +03:00 committed by Stanislav Bogatyrev
parent 9c455e1832
commit 389e0dd62b
7 changed files with 58 additions and 0 deletions

4
.env
View file

@ -16,3 +16,7 @@ IR_IMAGE=nspccdev/neofs-ir
# NeoFS Storage nodes # NeoFS Storage nodes
NODE_VERSION=0.12.1 NODE_VERSION=0.12.1
NODE_IMAGE=nspccdev/neofs-storage NODE_IMAGE=nspccdev/neofs-storage
# HTTP Gate
HTTP_GW_VERSION=0.12.0-rc.3
HTTP_GW_IMAGE=nspccdev/neofs-http-gate

View file

@ -5,3 +5,4 @@ chain
morph_chain morph_chain
ir ir
storage storage
http_gate

1
services/http_gate/.env Symbolic link
View file

@ -0,0 +1 @@
../../.env

View file

@ -0,0 +1 @@
IPV4_PREFIX.81 http.LOCAL_DOMAIN

View file

@ -0,0 +1,15 @@
HTTP_GW_LISTEN_ADDRESS=0.0.0.0:8080
HTTP_GW_LOGGER_LEVEL=info
HTTP_GW_REBALANCE_TIMER=5m
HTTP_GW_CONNECT_TIMEOUT=60s
HTTP_GW_REQUEST_TIMEOUT=300s
HTTP_GW_KEEPALIVE_TIMEOUT=300s
HTTP_GW_KEEPALIVE_TIME=120s
HTTP_GW_KEEPALIVE_PERMIT_WITHOUT_STREAM=True
HTTP_GW_METRICS=False
HTTP_GW_PPROF=False
HTTP_GW_VERBOSE=false

View file

@ -0,0 +1,35 @@
---
version: "2.4"
services:
http_gate:
image: ${HTTP_GW_IMAGE}:${HTTP_GW_VERSION}
domainname: ${LOCAL_DOMAIN}
hostname: http_gate
container_name: http_gate
restart: on-failure
networks:
http_gate_int:
internet:
ipv4_address: ${IPV4_PREFIX}.81
volumes:
- ./user.key:/user.key
- ./../../vendor/hosts:/etc/hosts
stop_signal: SIGKILL
env_file: [ ".env", ".http.env" ]
environment:
- HTTP_GW_KEY=/user.key
- HTTP_GW_PEERS_0_ADDRESS=s01.${LOCAL_DOMAIN}:8080
- HTTP_GW_PEERS_0_WEIGHT=0.2
- HTTP_GW_PEERS_1_ADDRESS=s02.${LOCAL_DOMAIN}:8080
- HTTP_GW_PEERS_1_WEIGHT=0.2
- HTTP_GW_PEERS_2_ADDRESS=s03.${LOCAL_DOMAIN}:8080
- HTTP_GW_PEERS_2_WEIGHT=0.2
- HTTP_GW_PEERS_3_ADDRESS=s04.${LOCAL_DOMAIN}:8080
- HTTP_GW_PEERS_3_WEIGHT=0.2
networks:
http_gate_int:
internet:
external:
name: basenet_internet

View file

@ -0,0 +1 @@
с╨─ЧдФ╕Я?вьэЁ╡²Оv─/l⌠║еы