Skip to content

Commit fb79d63

Browse files
authored
Merge pull request #20 from shutter-network/release/v0.1.4
add config to enable keyper endpoints
2 parents fc9307f + 2ec3cf6 commit fb79d63

File tree

5 files changed

+20
-3
lines changed

5 files changed

+20
-3
lines changed

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
build:
1313
context: shutter
1414
args:
15-
UPSTREAM_VERSION: v1.3.9
15+
UPSTREAM_VERSION: v1.3.10
1616
KEYPER_CONFIG_DIR: /keyper/config
1717
SHUTTER_CHAIN_DIR: /chain
1818
STAKER_SCRIPTS_VERSION: v0.1.0
@@ -25,6 +25,7 @@ services:
2525
- SHUTTER_PUSH_LOGS_ENABLED=false
2626
- PUSHGATEWAY_USERNAME=""
2727
- PUSHGATEWAY_PASSWORD=""
28+
- SHUTTER_HTTP_ENABLED=false
2829
volumes:
2930
- chain:/chain
3031
- keyper-config:/keyper/config
@@ -44,4 +45,4 @@ volumes:
4445
db_data: {}
4546
chain: {}
4647
keyper-config: {}
47-
metrics-config: {}
48+
metrics-config: {}

package_variants/gnosis/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
- "27656:27656"
1313
- "27660:27660"
1414
- "9200:9100"
15+
- "3000:3000"
1516

1617
metrics:
1718
build:

setup-wizard.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,15 @@ fields:
8888
required: false
8989
secret: true
9090
if: { enable_push_metrics: { "enum": ["true"] } }
91+
92+
- id: http_enabled
93+
title: HTTP Service Enabled
94+
description: |
95+
Enable or disable the HTTP service for the API Keyper. If enabled, the HTTP server will be started to handle incoming API requests.
96+
target:
97+
type: environment
98+
name: SHUTTER_HTTP_ENABLED
99+
service: shutter
100+
enum:
101+
- "true"
102+
- "false"

shutter/go-shutter-settings/settings/keyper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type KeyperConfig struct {
1010
InstanceID int `env:"_ASSETS_INSTANCE_ID"`
1111
DatabaseURL string `env:"SHUTTER_DATABASEURL"`
1212
BeaconAPIURL string `env:"SHUTTER_BEACONAPIURL"`
13+
HTTPEnabled bool `env:"SHUTTER_HTTP_ENABLED"`
1314
MaxNumKeysPerMessage int `env:"_ASSETS_MAX_NUM_KEYS_PER_MESSAGE"`
1415
Chain struct {
1516
EncryptedGasLimit int `env:"_ASSETS_ENCRYPTED_GAS_LIMIT"`
@@ -85,4 +86,4 @@ func AddSettingsToKeyper(generatedFilePath, configFilePath, outputFilePath strin
8586
fmt.Println("Keyper TOML file modified successfully and saved to", outputFilePath)
8687

8788
return nil
88-
}
89+
}

shutter/scripts/configure_keyper.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export VALIDATOR_PUBLIC_KEY=$(cat "${SHUTTER_CHAIN_DIR}/config/priv_validator_pu
4747
export SHUTTER_METRICS_ENABLED=${SHUTTER_PUSH_METRICS_ENABLED}
4848
export FLOODSUB_DISCOVERY_ENABLED=true
4949
export SHUTTER_DISCOVERY_NAMESPACE="${_ASSETS_DISCOVERY_NAME_PREFIX}-${_ASSETS_INSTANCE_ID}"
50+
export SHUTTER_HTTP_ENABLED=${SHUTTER_HTTP_ENABLED}
51+
5052

5153
echo "[INFO | configure] LISTEN: $SHUTTER_P2P_LISTENADDRESSES"
5254

0 commit comments

Comments
 (0)