Rootstock: drop JVM -Dhosts.X props - let file config 'hosts = ["*"]' win

Setting hosts via -Dhosts.0=*, -Dhosts.1=*, etc creates an OBJECT in
HOCON (indexed entries), but rskj's schema expects LIST. Result: rskj
warns and falls back to default whitelist (localhost only).

Drop the hosts.X JVM properties entirely. The file /etc/rsk/node.conf
already declares hosts = ["*"] which IS a HOCON LIST. Without the JVM
override, the file value wins.
This commit is contained in:
2026-05-05 19:16:27 +00:00
parent 53697cb40d
commit bbb6205cb4
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ services:
- 8545 - 8545
- 8546 - 8546
environment: environment:
RSKJ_SYS_PROPS: -Drpc.providers.web.http.bind_address=0.0.0.0 -Drpc.providers.web.http.hosts.0=* RSKJ_SYS_PROPS: -Drpc.providers.web.http.bind_address=0.0.0.0
restart: unless-stopped restart: unless-stopped
stop_grace_period: 5m stop_grace_period: 5m
networks: networks:

View File

@@ -52,7 +52,7 @@ services:
- 8545 - 8545
- 8546 - 8546
environment: environment:
RSKJ_SYS_PROPS: -Drpc.providers.web.http.bind_address=0.0.0.0 -Drpc.providers.web.http.hosts.0=* RSKJ_SYS_PROPS: -Drpc.providers.web.http.bind_address=0.0.0.0
restart: unless-stopped restart: unless-stopped
stop_grace_period: 5m stop_grace_period: 5m
networks: networks: