-
Notifications
You must be signed in to change notification settings - Fork 4
/
.env.example
92 lines (77 loc) · 2.53 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Hermes environment settings
# Set LOG_LEVEL
#
# Valid values are:
# silly, verbose, info, timing, http, notice, warn, error, silent
#
# Default: info
LOG_LEVEL = info
# Update validator registry every Nth ledger.
#
# Default: 256 (ledgers)
# VALIDATOR_SAMPLE_INTERVAL = 256
# Enable Validation message ingress and storage.
# If disabled, Hermes will only serve requests and won't store any new
# validation messages
#
# Default: true
INGRESS_ENABLED = true
# Enable syncing validation messages from peers.
# If disabled, Hermes will only serve requests and won't poll its peers
# for validation messages
#
# Default: true
PEERSYNC_ENABLED = true
PEERSYNC_POLL_INTERVAL = 3600
# The number of past ledger validations to request from other peers. As
# per current ledger interval, XRPL closes roughly 1000 ledgers per hour.
#
# Default: 6000
# PEERSYNC_FETCH_DEPTH = 6000
# PEER_PRIVATE flag's behavior does not resemble
# rippled's [peer_private] setting yet. At the moment,
# this flag will supress Peer discovery via REST and
# gRPC interfaces.
#
# Default: false
PEER_PRIVATE = false
# Server hostname will be used to generate certificate and advertise
# access to gRPC and REST services. The hostname must resolve.
#
# Default: localhost
SERVER_HOSTNAME = 'localhost'
# Server key and certificate location
SERVER_PRIVATE_KEY = 'config/private.pem'
SERVER_CERTIFICATE = 'config/cert.pem'
# HTTP/REST service
#
# Default: 50588
SERVER_REST_ENABLED = true
SERVER_REST_PORT = 50588
# gRPC service
SERVER_GRPC_ENABLED = true
SERVER_GRPC_ADDRESS = '0.0.0.0'
SERVER_GRPC_PORT = 50589
# Express.js settings
EXPRESS_REQUEST_LOG = 'log/express.log';
EXPRESS_LOG_FORMAT =':remote-addr - [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length] :response-time ms';
# Mongodb settings
MONGODB_HOST = 'localhost'
MONGODB_PORT = 27017
MONGODB_DATABASE = 'hermes_prod'
# XRPL node settings
RIPPLED_URL = 'ws://localhost:6005'
# Online deletion: Specify how many validations to keep. The service
# periodically deletes any validations with ledger_index older than this number.
# ONLINE_DELETE setting specifies ledger count. A value of 250000 would allow
# the service to hold approx 10 days worth of validations. If omitted or
# commented out, validations are not deleted.
#
# Default: (disabled, 250000)
# ONLINE_DELETE = 250000
# Server certificate SUBJECT settings
SERVER_CERTIFICATE_DAYS = 3650
SERVER_CERTIFICATE_SUBJECT_C = 'CH'
SERVER_CERTIFICATE_SUBJECT_ST = 'State'
SERVER_CERTIFICATE_SUBJECT_L = 'Location'
SERVER_CERTIFICATE_SUBJECT_O = 'Organization'