-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathservices.properties
executable file
·217 lines (194 loc) · 10.6 KB
/
services.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
#------------------------------------------------------------------------------
# Name: services.properties
# Project: Ethercis
# Version: 1.2.0
# All JVM system variables are supported, e.g.
# ${user.dir}
# ${user.home}
#could be used and would be replaced to the current directory and
#the users home directory respectively.
#
#Further you can reference all variables in this file or from command line
#with ${...}
#-------------------------------------------------------------------------------
# Global Properties
#-------------------------------------------------------------------------------
configdir=./config
#-------------------------------------------------------------------------------
# REST endpoint configuration
#-------------------------------------------------------------------------------
# compatibility mode (EHRSCAPE|STANDARD)
# EHRSCAPE should be used at all time
server.mode.dialect=EHRSCAPE
# define the URL end point root
# f.e. GET 192.168.2.102:8081/rest/v1/composition/1a234b94-4869-445f-96f0-464c203b4f6e::local.ethercis.com::1?format=RAW
server.mode.dialect.root=/rest/v1
#-------------------------------------------------------------------------------
# REST SERVER CONFIGURATION
#-------------------------------------------------------------------------------
# HTTP configuration
# https://www.eclipse.org/jetty/documentation/9.4.x/configuring-connectors.html
server.http.port = 8080
#Any host
server.http.host = 0.0.0.0
#HTTP configuration
server.http.output_buffer_size = 32768
server.http.request_header_size = 8192
server.http.response_header_size = 8192
server.http.send_server_version = true
server.http.send_date_header = false
# CORS configuration
server.cors.allow_headers = Accept, Accept-CH, Accept-Charset, Accept-Datetime, Accept-Encoding, \
Accept-Ext, Accept-Features, Accept-Language, Accept-Params, Accept-Ranges, Access-Control-Allow-Credentials, \
Access-Control-Allow-Headers, Access-Control-Allow-Methods, Access-Control-Allow-Origin, Access-Control-Expose-Headers, \
Access-Control-Max-Age, Access-Control-Request-Headers, Access-Control-Request-Method, Age, Allow, Alternates, Authentication-Info, \
Authorization, C-Ext, C-Man, C-Opt, C-PEP, C-PEP-Info, \
CONNECT, Cache-Control, Compliance, Connection, Content-Base, Content-Disposition, Content-Encoding, Content-ID, \
Content-Language, Content-Length, Content-Location, Content-MD5, \
Content-Range, Content-Script-Type, Content-Security-Policy, \
Content-Style-Type, Content-Transfer-Encoding, Content-Type, Content-Version, Cookie, Cost, \
DAV, DELETE, DNT, DPR, Date, Default-Style, Delta-Base, Depth, Derived-From, Destination, \
Differential-ID, Digest, ETag, Expect, Expires, Ext, Ehr-Session, From, GET, GetProfile, HEAD, HTTP-date, \
Host, IM, If, If-Match, If-Modified-Since, If-None-Match, If-Range, If-Unmodified-Since, Keep-Alive, \
Label, Last-Event-ID, Last-Modified, Link, Location, Lock-Token, MIME-Version, Man, Max-Forwards, Media-Range, \
Message-ID, Meter, Negotiate, Non-Compliance, OPTION, OPTIONS, OWS, Opt, Optional, Ordering-Type, Origin, Overwrite, \
P3P, PEP, PICS-Label, POST, PUT, Pep-Info, Permanent, Position, Pragma, ProfileObject, Protocol, Protocol-Query, \
Protocol-Request, Proxy-Authenticate, Proxy-Authentication-Info, Proxy-Authorization, Proxy-Features, \
Proxy-Instruction, Public, RWS, Range, Referer, Refresh, Resolution-Hint, Resolver-Location, Retry-After, Safe, \
Sec-Websocket-Extensions, Sec-Websocket-Key, Sec-Websocket-Origin, Sec-Websocket-Protocol, Sec-Websocket-Version, \
Security-Scheme, Server, Set-Cookie, Set-Cookie2, SetProfile, SoapAction, Status, Status-URI, Strict-Transport-Security, \
SubOK, Subst, Surrogate-Capability, Surrogate-Control, TCN, TE, TRACE, Timeout, Title, Trailer, Transfer-Encoding, \
UA-Color, UA-Media, UA-Pixels, UA-Resolution, UA-Windowpixels, URI, Upgrade, User-Agent, Variant-Vary, Vary, Version, \
Via, Viewport-Width, WWW-Authenticate, Want-Digest, Warning, Width, X-Content-Duration, X-Content-Security-Policy, \
X-Content-Type-Options, X-CustomHeader, X-DNSPrefetch-Control, X-Forwarded-For, X-Forwarded-Port, X-Forwarded-Proto, \
X-Frame-Options, X-Modified, X-OTHER, X-PING, X-PINGOTHER, X-Powered-By, X-Requested-With
server.cors.allow_methods = CONNECT, DEBUG, DELETE, DONE, GET, HEAD, HTTP, HTTP/0.9, HTTP/1.0, HTTP/1.1, HTTP/2, \
OPTIONS, ORIGIN, ORIGINS, PATCH, POST, PUT, QUIC, REST, SESSION, SHOULD, SPDY, TRACE, TRACK
# SSL configuration
# remove the comments, generate the certificate and configure the keystore
# see https://www.eclipse.org/jetty/documentation/9.4.x/configuring-ssl.html
# for more on this
#-------------------------------------------------------------------------------------------------------------------
#server.http.secure_scheme = https
#server.https.port = 8443
#server.https.host = localhost
#server.https.key_store_path=/etc/opt/ecis/security/.keystore
#server.https.key_store_password=OBF:20zl1tvf1x1h1ikq1rwf1ino1x151tvn20zh
#server.https.key_manager_password=OBF:20zl1tvf1x1h1ikq1rwf1ino1x151tvn20zh
#server.https.trust_store_path=src/test/resources/config/security/.keystore
#server.https.trust_store_password=OBF:20zl1tvf1x1h1ikq1rwf1ino1x151tvn20zh
#server.https.exclude_cipher_suites=SSL_RSA_WITH_DES_CBC_SHA,SSL_DHE_RSA_WITH_DES_CBC_SHA,SSL_DHE_DSS_WITH_DES_CBC_SHA,\
# SSL_RSA_EXPORT_WITH_RC4_40_MD5,SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,\
# SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA,SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
# Resource monitoring
# https://www.eclipse.org/jetty/documentation/9.3.x/limit-load.html
#server.low_resources_monitor=true
#server.low_resources_monitor.period=1000
#server.low_resources_monitor.idle_timeout=1000
#server.low_resources_monitor.threads=true
#server.low_resources_monitor.max_connections=4
#server.low_resources_monitor.max_low_resources_time=10000
#request logging
# https://www.eclipse.org/jetty/documentation/9.4.x/configuring-jetty-request-logs.html
#server.request_log=true
#server.request_log.filename=file/path/name
#server.request_log.filename_date_format=YYYY-MM-dd
#server.request_log.retain_day=30
#server.request_log.append=true
#server.request_log.extended=false
#server.request_log.log_cookies=false
#server.request_log.log_timezone=GMT
#------------------------------------------------------------------------------
# EtherCIS instance definition
#------------------------------------------------------------------------------
host.name=localhost
#bootstrapHostname=192.168.1.9
# these are used when the session is managed by EtherCIS (define the session name)
# Used also to specify the origin of a versioned openEHR object
# for example:
# 1a234b94-4869-445f-96f0-464c203b4f6e::local.ethercis.com::1
# as a composition uid
server.node.id=local.ethercis.com
#cluster.node.id=vehr.local.ethercis.com
#
#------------------------------------------------------------------------------
# When an ServiceManagerException is thrown, how to format the getMessage() string
ServiceManagerException.logFormat=ServiceManagerException errorCode=[{0}] serverSideException={3} location=[{2}] message=[{4} : {8}] [See URL {9}]
#------------------------------------------------------------------------------
# REST SECURITY
#------------------------------------------------------------------------------
# environment variables used by services
organization.home=testOrganization
# deprecated
#Security.Server.policy=/etc/opt/ecis/policy.xml
# Nop for current version 21/08/2012 using this key for policy path
#server.security.policy.xml.path=test/resources/config/policy.xml
# security mode SHIRO|JWT. use JWT for token based authentication
server.security.policy.type=SHIRO
# path to file containing JWT key
# server.jwt.key_file_path=src/test/resources/config/security/jwt.cfg
#path to shiro ini file
server.security.shiro.inipath=${configdir}/security/authenticate.ini
# if true (default) force permission at DB level based on subject or role
server.security.db_role=false
# if true, principal (role) takes precedence on subject
server.security.role_precedence=true
# if true, SQL queries can be performed from the REST API
server.query.sql_enabled=false
# if true, auditing is enabled
server.audit = true
# deprecated
#dispatcher.map.config=test/resources/config/dispatchermap.xml
#---------------------------------------------------------------------------------
# KnowledgeCache: Knowledge Service parameters
#---------------------------------------------------------------------------------
# archetypes (if any).
knowledge.path.archetype=${configdir}/knowledge/archetypes
# openEHR template
knowledge.path.template=${configdir}/knowledge/templates
# Operational Templates (required)
knowledge.path.opt=${configdir}/knowledge/operational_templates
# if true, the knowledge cache is pre-loaded initially
knowledge.forcecache=true
#--------------------------------------------------------------------------------
# Persistence access layer configuration
#--------------------------------------------------------------------------------
# simple JDBC connection
# https://www.jooq.org/doc/3.10/manual/getting-started/tutorials/jooq-in-7-steps/jooq-in-7-steps-step4/
server.persistence.implementation=jooq
server.persistence.jooq.dialect=POSTGRES
server.persistence.jooq.url=jdbc:postgresql://localhost:5432/ethercis
server.persistence.jooq.login=postgres
server.persistence.jooq.password=postgres
#this configuration uses PG POOLING
#https://jdbc.postgresql.org/documentation/head/ds-ds.html
#server.persistence.implementation=jooq_pg_pool
#server.persistence.jooq.dialect=POSTGRES
#server.persistence.jooq.host=localhost
#server.persistence.jooq.port=5432
#server.persistence.jooq.database=ethercis
#server.persistence.jooq.login=postgres
#server.persistence.jooq.password=postgres
#server.persistence.jooq.max_connections=100
#this configuration uses DBCP2
# see https://commons.apache.org/proper/commons-dbcp/configuration.html
#server.persistence.implementation=jooq_dbcp2
#server.persistence.jooq.dialect=${jooq.dialect}
#server.persistence.jooq.url=${jooq.url}
#server.persistence.jooq.login=${jooq.login}
#server.persistence.jooq.password=${jooq.password}
#server.persistence.jooq.max_connections=100
# maxWait ms
#server.persistence.dbcp2.max_wait = 60
#server.persistence.dbcp2.set_pool_prepared_statements = true
#server.persistence.dbcp2.test_on_borrow = true
#server.persistence.dbcp2.set_max_prepared_statements = 200
# OPTIONAL
#server.persistence.jooq.database=ethercis
#server.persistence.dbcp2.max_idle=8
# maxTotal
#server.persistence.dbcp2.max_active=8
#server.persistence.dbcp2.remove_abandonned=false
#server.persistence.dbcp2.remove_abandonned_timeout=300
#server.persistence.dbcp2.log_abandonned=false
#server.persistence.dbcp2.initial_size=0