File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ with lib; {
4848 # https://docs.nethermind.io/nethermind/ethereum-client/configuration/network
4949 Network = {
5050 DiscoveryPort = mkOption {
51- type = types . port ;
51+ type = types . either types . port ( types . enum [ " \ ${DISCOVERY_PORT}" ] ) ;
5252 default = 30303 ;
5353 description = "UDP port number for incoming discovery connections." ;
5454 } ;
5555
5656 P2PPort = mkOption {
57- type = types . port ;
57+ type = types . either types . port ( types . enum [ " \ ${P2P_PORT}" ] ) ;
5858 default = 30303 ;
5959 description = "TPC/IP port number for incoming P2P connections." ;
6060 } ;
@@ -69,13 +69,13 @@ with lib; {
6969 } ;
7070
7171 Port = mkOption {
72- type = types . port ;
72+ type = types . either types . port ( types . enum [ " \ ${PORT}" ] ) ;
7373 default = 8545 ;
7474 description = "Port number for JSON RPC calls." ;
7575 } ;
7676
7777 WebSocketsPort = mkOption {
78- type = types . port ;
78+ type = types . either types . port ( types . enum [ " \ ${WEB_SOCKETS_PORT}" ] ) ;
7979 default = 8545 ;
8080 description = "Port number for JSON RPC web sockets calls." ;
8181 } ;
@@ -87,7 +87,7 @@ with lib; {
8787 } ;
8888
8989 EnginePort = mkOption {
90- type = types . port ;
90+ type = types . either types . port ( types . enum [ " \ ${ENGINE_PORT}" ] ) ;
9191 default = 8551 ;
9292 description = "Port for Execution Engine calls." ;
9393 } ;
@@ -118,7 +118,7 @@ with lib; {
118118 } ;
119119
120120 ExposePort = mkOption {
121- type = types . nullOr types . port ;
121+ type = types . nullOr ( types . either types . port ( types . enum [ " \ ${METRICS_EXPOSE_PORT}" ] ) ) ;
122122 default = null ;
123123 description = "If 'true' then Health Check endpoints is enabled at /health" ;
124124 } ;
You can’t perform that action at this time.
0 commit comments