explicitly enable whisper for mailserver
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
3c6d10b597
commit
96aba9f3af
|
@ -14,6 +14,8 @@ export API_MODULES ?= eth,net,web3,admin
|
||||||
export CONTAINER_NAME ?= status-go-mailserver
|
export CONTAINER_NAME ?= status-go-mailserver
|
||||||
export DATA_PATH ?= /var/tmp/status-go-mail
|
export DATA_PATH ?= /var/tmp/status-go-mail
|
||||||
export FLEET_NAME ?= eth.beta
|
export FLEET_NAME ?= eth.beta
|
||||||
|
export REGISTER_TOPIC ?= whispermail
|
||||||
|
export MAIL_PASSWORD ?= status-offline-inbox
|
||||||
# Necessary to make mailserver available publicly
|
# Necessary to make mailserver available publicly
|
||||||
export PUBLIC_IP ?= $(shell curl -s https://ipecho.net/plain)
|
export PUBLIC_IP ?= $(shell curl -s https://ipecho.net/plain)
|
||||||
|
|
||||||
|
@ -65,6 +67,11 @@ config: ##@ Generate config for mailserver with current public IP.
|
||||||
| jq '.HTTPHost = "0.0.0.0"' \
|
| jq '.HTTPHost = "0.0.0.0"' \
|
||||||
| jq '.HTTPPort= $(RPC_PORT)' \
|
| jq '.HTTPPort= $(RPC_PORT)' \
|
||||||
| jq '.APIModules = "$(API_MODULES)"' \
|
| jq '.APIModules = "$(API_MODULES)"' \
|
||||||
|
| jq '.RegisterTopics = ["$(REGISTER_TOPIC)"]' \
|
||||||
|
| jq '.WhisperConfig.Enabled = true' \
|
||||||
|
| jq '.WhisperConfig.EnableMailServer = true' \
|
||||||
|
| jq '.WhisperConfig.LightClient = false' \
|
||||||
|
| jq '.WhisperConfig.MailServerPassword = "$(MAIL_PASSWORD)"' \
|
||||||
> config.json
|
> config.json
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -25,11 +25,13 @@ To simply start a container run `make`, other commands include:
|
||||||
All settings are passed through environment variables:
|
All settings are passed through environment variables:
|
||||||
|
|
||||||
* `PUBLIC_IP` - Your IP visible from the internet and advertised by the Mailserver.
|
* `PUBLIC_IP` - Your IP visible from the internet and advertised by the Mailserver.
|
||||||
* `LISTEN_PORT` - Mailserver TCP port, by default it's `30303` but you might want to use `443`.
|
* `LISTEN_PORT` - Mailserver TCP & UDP port, by default it's `30303` but you might want to use `443`.
|
||||||
* `RPC_PORT` - Control port making it possible to use the [JSON-RPC API](https://github.com/ethereum/wiki/wiki/JSON-RPC).
|
* `RPC_PORT` - Control port making it possible to use the [JSON-RPC API](https://github.com/ethereum/wiki/wiki/JSON-RPC).
|
||||||
* `API_MODULES` - API modules to be made available via the `RPC_PORT`.
|
* `API_MODULES` - API modules to be made available via the `RPC_PORT`.
|
||||||
* `DATA_PATH` - Location of Mailserver storage and keys. (Default: `/var/tmp/status-go-mail`)
|
* `DATA_PATH` - Location of Mailserver storage and keys. (Default: `/var/tmp/status-go-mail`)
|
||||||
* `CONTAINER_NAME` - Name of the container that will be created.
|
* `CONTAINER_NAME` - Name of the container that will be created.
|
||||||
|
* `REGISTER_TOPIC` - Mynamic mailserver discovery topic. (Default: `whispermail`)
|
||||||
|
* `MAIL_PASSWORD` - Basic HTTP auth password for mailserver. (Default: `status-offline-inbox`)
|
||||||
* `LOG_LEVEL` - Set level of log messages to show. (`ERROR`, `WARN`, `INFO`, `DEBUG`, `TRACE`)
|
* `LOG_LEVEL` - Set level of log messages to show. (`ERROR`, `WARN`, `INFO`, `DEBUG`, `TRACE`)
|
||||||
|
|
||||||
# Known Issues
|
# Known Issues
|
||||||
|
|
|
@ -8,7 +8,8 @@ services:
|
||||||
command: -log=${LOG_LEVEL} -log-without-color -c=/config.json -dir=/data
|
command: -log=${LOG_LEVEL} -log-without-color -c=/config.json -dir=/data
|
||||||
ports:
|
ports:
|
||||||
- '127.0.0.1:${RPC_PORT}:${RPC_PORT}'
|
- '127.0.0.1:${RPC_PORT}:${RPC_PORT}'
|
||||||
- '0.0.0.0:${LISTEN_PORT}:30303'
|
- '0.0.0.0:${LISTEN_PORT}:30303/tcp'
|
||||||
|
- '0.0.0.0:${LISTEN_PORT}:30303/udp'
|
||||||
volumes:
|
volumes:
|
||||||
- '${PWD}/config.json:/config.json'
|
- '${PWD}/config.json:/config.json'
|
||||||
- '${DATA_PATH}:/data'
|
- '${DATA_PATH}:/data'
|
||||||
|
|
Loading…
Reference in New Issue