Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
build:
context: shutter
args:
UPSTREAM_VERSION: v1.3.9
UPSTREAM_VERSION: v1.3.10
KEYPER_CONFIG_DIR: /keyper/config
SHUTTER_CHAIN_DIR: /chain
STAKER_SCRIPTS_VERSION: v0.1.0
Expand All @@ -25,6 +25,7 @@ services:
- SHUTTER_PUSH_LOGS_ENABLED=false
- PUSHGATEWAY_USERNAME=""
- PUSHGATEWAY_PASSWORD=""
- SHUTTER_HTTP_ENABLED=false
volumes:
- chain:/chain
- keyper-config:/keyper/config
Expand All @@ -44,4 +45,4 @@ volumes:
db_data: {}
chain: {}
keyper-config: {}
metrics-config: {}
metrics-config: {}
1 change: 1 addition & 0 deletions package_variants/gnosis/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- "27656:27656"
- "27660:27660"
- "9200:9100"
- "3000:3000"

metrics:
build:
Expand Down
12 changes: 12 additions & 0 deletions setup-wizard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,15 @@ fields:
required: false
secret: true
if: { enable_push_metrics: { "enum": ["true"] } }

- id: http_enabled
title: HTTP Service Enabled
description: |
Enable or disable the HTTP service for the API Keyper. If enabled, the HTTP server will be started to handle incoming API requests.
target:
type: environment
name: SHUTTER_HTTP_ENABLED
service: shutter
enum:
- "true"
- "false"
3 changes: 2 additions & 1 deletion shutter/go-shutter-settings/settings/keyper.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type KeyperConfig struct {
InstanceID int `env:"_ASSETS_INSTANCE_ID"`
DatabaseURL string `env:"SHUTTER_DATABASEURL"`
BeaconAPIURL string `env:"SHUTTER_BEACONAPIURL"`
HTTPEnabled bool `env:"SHUTTER_HTTP_ENABLED"`
MaxNumKeysPerMessage int `env:"_ASSETS_MAX_NUM_KEYS_PER_MESSAGE"`
Chain struct {
EncryptedGasLimit int `env:"_ASSETS_ENCRYPTED_GAS_LIMIT"`
Expand Down Expand Up @@ -85,4 +86,4 @@ func AddSettingsToKeyper(generatedFilePath, configFilePath, outputFilePath strin
fmt.Println("Keyper TOML file modified successfully and saved to", outputFilePath)

return nil
}
}
2 changes: 2 additions & 0 deletions shutter/scripts/configure_keyper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export VALIDATOR_PUBLIC_KEY=$(cat "${SHUTTER_CHAIN_DIR}/config/priv_validator_pu
export SHUTTER_METRICS_ENABLED=${SHUTTER_PUSH_METRICS_ENABLED}
export FLOODSUB_DISCOVERY_ENABLED=true
export SHUTTER_DISCOVERY_NAMESPACE="${_ASSETS_DISCOVERY_NAME_PREFIX}-${_ASSETS_INSTANCE_ID}"
export SHUTTER_HTTP_ENABLED=${SHUTTER_HTTP_ENABLED}


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

Expand Down
Loading