-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathweidentity.properties
155 lines (128 loc) · 7.03 KB
/
weidentity.properties
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#######################################################################################################
# #
# application config #
# #
#######################################################################################################
# Deploy WeIdentity with blockchain or only database
deploy.style=database
# Crypto type, only use for deploy with database, 0 for ECDSA, 1 for SM
crypto.type=0
# The organization ID for AMOP communication.
blockchain.orgid=org48
# The Blockchain Type
blockchain.type=FISCO_BCOS
# The Chain Id
chain.id=101
# AMOP Config
# Timeout for amop request, default: 5000ms
amop.request.timeout=5000
# The Communication ID for AMOP
amop.id=org44amop
# Blockchain node info.
nodes=10.107.120.121:21200
#######################################################################################################
# #
# persistence config #
# #
#######################################################################################################
# Persistence Layer configurations. Do NOT change this if you are not using Persistence Layer features!
#Support the persistence of mysql and redis. You can choose the type of persistence.
persistence_type=mysql
# MySQL connection config
# Support multiple data source configurations with comma-separated multiple data sources.
datasource.name=datasource1
# The configuration of each data source is prefixed by the name of the data source.
datasource1.jdbc.url=jdbc:mysql://10.107.120.232:3307/weidafee?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai
datasource1.jdbc.driver=com.mysql.cj.jdbc.Driver
datasource1.jdbc.username=root
datasource1.jdbc.password=Apps@123
datasource1.jdbc.maxActive=50
datasource1.jdbc.initialSize=5
datasource1.jdbc.minIdle=5
datasource1.jdbc.maxIdle=5
datasource1.jdbc.maxWait=10000
datasource1.jdbc.timeBetweenEvictionRunsMillis=600000
datasource1.jdbc.numTestsPerEvictionRun=5
datasource1.jdbc.minEvictableIdleTimeMillis=1800000
# Redisson config
# If you want to configure redis in cluster mode, enter multiple node addresses separated by commas.
redis.url=
redis.password=
redis_single.database=0
redis_cluster.idle_connection_timeout=10000
redis_cluster.connect_timeout=10000
redis_cluster.timeout=3000
redis_cluster.slave_connection_minimum_idle_size=10
redis_cluster.slave_connection_pool_size=64
redis_cluster.master_connection_minimum_idle_size=10
redis_cluster.master_connection_pool_size=64
#######################################################################################################
# #
# persistence domain config #
# #
#######################################################################################################
# Domain configuration, which divides colons into two segments, the first segment is the name of the data source,
# the second segment is the name of the table, and if not, the default is the first data source and the default table `sdk_all_data`,
# Multiple domains can be configured at the same time.
# example:
# domain.credential=datasource1:credential_data
# domain.credential.timeout=86400000
# domain.weidDocument=datasource1:weid_document_data
# domain.credential.timeout=86400000
# the default domain
domain.defaultInfo=datasource1:default_info
domain.defaultInfo.timeout=31556908799941
# the domain for save encrypt Key
domain.encryptKey=datasource1:encrypt_key_info
domain.encryptKey.timeout=31556908799941
#
domain.templateSecret=datasource1:template_secret
domain.templateSecret.timeout=31556908799941
#
domain.masterKey=datasource1:master_secret
#
domain.credentialSignature=datasource1:credential_signature
# weid auth info
domain.weIdAuth=datasource1:weid_auth
# the domain for save resource
domain.resourceInfo=datasource1:resource_info
domain.resourceInfo.timeout=31556908799941
# tables for running locally
local.weIdDocument=datasource1:table_weid_document
local.cpt=datasource1:table_cpt
local.policy=datasource1:table_policy
local.presentation=datasource1:table_presentation
local.role=datasource1:table_role
local.authorityIssuer=datasource1:table_authority_issuer
local.specificIssuer=datasource1:table_specific_issuer
local.evidence=datasource1:table_evidence
#######################################################################################################
# #
# credential related config #
# #
#######################################################################################################
# You can configure the maximumSize of the default cache module through caffeineCache.maximumSize.xxx.
caffeineCache.maximumSize.SYS_CPT=100
# Salt length for Proof creation.
salt.length=5
# Default length of array value in CPT when creating credential based on ZKP.
zkp.cpt.array.length=5
#######################################################################################################
# #
# endpoint Service config #
# #
#######################################################################################################
# Endpoint Service Integration-side parameters
# Listener port required to be opened for RPC Server, default: 6010
rpc.listener.port=6010
#######################################################################################################
# #
# timestamp Service config #
# #
#######################################################################################################
# Timestamp Service Parameters
wesign.accessTokenUrl=
wesign.signTicketUrl=
wesign.timestampUrl=
wesign.appId=
wesign.secret=