|
414 | 414 | in [ |
415 | 415 | { |
416 | 416 | data = '' |
417 | | - include "${mantis}/conf/testnet-internal.conf" |
| 417 | + include "${mantis-faucet}/conf/testnet-internal.conf" |
418 | 418 | mantis.blockchains.testnet-internal.custom-genesis-file = "{{ env "NOMAD_TASK_DIR" }}/genesis.json" |
419 | 419 |
|
420 | 420 | faucet { |
@@ -442,37 +442,88 @@ let |
442 | 442 | # Transaction value |
443 | 443 | tx-value = 1000000000000000000 |
444 | 444 |
|
445 | | - # Faucet listen interface |
446 | | - listen-interface = "0.0.0.0" |
447 | | -
|
448 | | - # Faucet listen port |
449 | | - listen-port = {{ env "NOMAD_PORT_rpc" }} |
450 | | -
|
451 | | - # Faucet cors config |
452 | | - cors-allowed-origins = "*" |
453 | | -
|
454 | 445 | # Address of Ethereum node used to send the transaction |
455 | 446 | rpc-address = {{- range service "${namespace}-mantis-1.${namespace}-mantis-miner-rpc" -}} |
456 | 447 | "http://{{ .Address }}:{{ .Port }}" |
457 | 448 | {{- end }} |
458 | 449 |
|
459 | 450 | # How often can a single IP address send a request |
460 | | - min-request-interval = 1.minute |
461 | | -
|
462 | | - # How many ip addr -> timestamp entries to store |
463 | | - latest-timestamp-cache-size = 1024 |
| 451 | + min-request-interval = 0.minute |
464 | 452 | } |
465 | 453 |
|
466 | 454 | logging { |
467 | 455 | # Flag used to switch logs to the JSON format |
468 | | - json-output = false |
| 456 | + json-output = true |
469 | 457 |
|
470 | 458 | # Logs directory |
471 | | - logs-dir = /local/mantis-faucet/logs |
| 459 | + #logs-dir = /local/mantis-faucet/logs |
472 | 460 |
|
473 | 461 | # Logs filename |
474 | 462 | logs-file = "logs" |
475 | 463 | } |
| 464 | +
|
| 465 | + mantis { |
| 466 | + network { |
| 467 | + rpc { |
| 468 | + http { |
| 469 | + # JSON-RPC mode |
| 470 | + # Available modes are: http, https |
| 471 | + # Choosing https requires creating a certificate and setting up 'certificate-keystore-path' and |
| 472 | + # 'certificate-password-file' |
| 473 | + # See: https://github.com/input-output-hk/mantis/wiki/Creating-self-signed-certificate-for-using-JSON-RPC-with-HTTPS |
| 474 | + mode = "http" |
| 475 | +
|
| 476 | + # Whether to enable JSON-RPC HTTP(S) endpoint |
| 477 | + enabled = true |
| 478 | +
|
| 479 | + # Listening address of JSON-RPC HTTP(S) endpoint |
| 480 | + interface = "0.0.0.0" |
| 481 | +
|
| 482 | + # Listening port of JSON-RPC HTTP(S) endpoint |
| 483 | + port = {{ env "NOMAD_PORT_rpc" }} |
| 484 | +
|
| 485 | + # Path to the keystore storing the certificates (used only for https) |
| 486 | + # null value indicates HTTPS is not being used |
| 487 | + certificate-keystore-path = null |
| 488 | +
|
| 489 | + # Type of certificate keystore being used |
| 490 | + # null value indicates HTTPS is not being used |
| 491 | + certificate-keystore-type = null |
| 492 | +
|
| 493 | + # File with the password used for accessing the certificate keystore (used only for https) |
| 494 | + # null value indicates HTTPS is not being used |
| 495 | + certificate-password-file = null |
| 496 | +
|
| 497 | + # Domains allowed to query RPC endpoint. Use "*" to enable requests from |
| 498 | + # any domain. |
| 499 | + cors-allowed-origins = "*" |
| 500 | + } |
| 501 | +
|
| 502 | + ipc { |
| 503 | + # Whether to enable JSON-RPC over IPC |
| 504 | + enabled = false |
| 505 | +
|
| 506 | + # Path to IPC socket file |
| 507 | + socket-file = "/local/mantis-faucet/faucet.ipc" |
| 508 | + } |
| 509 | +
|
| 510 | + # Enabled JSON-RPC APIs over the JSON-RPC endpoint |
| 511 | + apis = "faucet" |
| 512 | + } |
| 513 | + } |
| 514 | + } |
| 515 | +
|
| 516 | + mantis.blockchains.testnet-internal.bootstrap-nodes = [ |
| 517 | + {{ range service "${namespace}-mantis-miner" -}} |
| 518 | + "enode:// {{- with secret (printf "kv/data/nomad-cluster/${namespace}/%s/enode-hash" .ServiceMeta.Name) -}} |
| 519 | + {{- .Data.data.value -}} |
| 520 | + {{- end -}}@{{ .Address }}:{{ .Port }}", |
| 521 | + {{ end -}} |
| 522 | + ] |
| 523 | +
|
| 524 | + mantis.client-id = "${faucetName}" |
| 525 | + mantis.metrics.enabled = true |
| 526 | + mantis.metrics.port = {{ env "NOMAD_PORT_metrics" }} |
476 | 527 | ''; |
477 | 528 | changeMode = "noop"; |
478 | 529 | destination = "local/faucet.conf"; |
|
0 commit comments