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:
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user