/
application.properties
137 lines (108 loc) · 6.72 KB
/
application.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
# Wica-HTTP Standard RUN Profile
# ==============================
# Note: this profile is used for the following purposes:
#
# (a) when the Wica-HTTP server is invoked directly as a fatJar and runs on
# the localhost in non-secure (http) mode on port 80.
#
# (b) when the Spring environment is started during the maven test phase
# to run unit and other integration tests.
#
#
# Spring Boot Framework Configuration
# -----------------------------------
# The host the service will run on. This is the address that the Spring Boot internal
# Tomcat server will bind to. This is the Docker bridge IP.
# note: the address will increment by 1 for each configured service in the
# container.
server.address= localhost
# The port the service will run on. This is the port that the Spring Boot internal
# Tomcat server will bind to.
server.port= 8080
# Turn off SSL
server.ssl.enabled= false
# Turn On/Off JSON "pretty printing" when returning JSON representations.
spring.jackson.serialization.indent-output= true
# Locations which SpringBoot will use for serving static content.
spring.web.resources.static-locations= classpath:static
# The following definition turns on the cacheing policy. For the moment this is set
# very conservatively. Much more sophisticated policies are possible.
spring.web.resources.cache.cachecontrol.max-age= 360s
# Wica Server data compression settings
# Note: it's important to be sure that the wica stream's main mode of operation
# - text/event-stream - is in this list !
server.compression.enabled= true
server.compression.min-response-size= 2048
server.compression.mime-types= application/json,application/xml,text/html,text/xml,text/plain,text/event-stream,application/javascript,text/css
# Application-Specific Configuration
# ----------------------------------
# Can be used to enable a test of logger performance when the application is started.
wica.test-logging-on-startup= false
# The configuration for PSI's CA library when using it to establish channel access monitors.
wica.epics-ca-library-monitor-notifier-impl= BlockingQueueMultipleWorkerMonitorNotificationServiceImpl,16,10
# The configuration for PSI's CA library when logging.
wica.epics-ca-library-debug-level= 800
# Period after which the resources associated with a Wica Channel will be released if they are no
# longer in use.
wica.channel-resource-release-interval-in-secs= 5
# Whether a channel disconnect value will be published if the monitoring associated with a Wica Channel
# is restarted.
wica.channel-publish-monitor-restarts= true
# Whether a channel disconnect value will be published if the poller associated with a Wica Channel
# is restarted.
wica.channel-publish-poller-restarts= true
# Whether a channel's initial value will be published as DISCONNECTED when a channel is first created
# or whether nothing will be published until the first monitored or polled value is acquired.
wica.channel-publish-channel-value-initial-state= true
# Whether a channel's initial metadata will be published as UNKNOWN when a channel is first created
# or whether nothing will be published until the first metadata information is acquired.
wica.channel-publish-channel-metadata-initial-state= true
# The number of values that can be held in the control system monitored value buffer before older values
# start getting thrown away.
wica.channel-monitored-value-buffer-size= 64
# The number of values that can be held in the control system polled value buffer before older values
# start getting thrown away.
wica.channel-polled-value-buffer-size= 64
# The default timeout in milliseconds to be applied when getting the current value of a wica channel.
wica.channel-get-timeout-interval-in-ms= 3000
# The numeric scale in digits to be used
wica.channel-get-numeric-scale= 8
# Semicolon separated list specifying the default names of the fields that will be returned when getting the
# current value of a wica channel.
wica.channel-get-value-default-fields-of-interest= type;val;sevr;ts
# Semicolon separated list specifying the default names of the fields that will be returned when getting the
# metadata associated with a wica channel.
wica.channel-get-metadata-default-fields-of-interest= type;egu;prec;hopr;lopr;drvh;drvl;hihi;lolo;high;low
# The default timeout in milliseconds to be applied when putting a new value to a wica channel.
wica.channel-put-timeout-interval-in-ms= 3000
# Whether strict JSON compliance should be used when serializing NaN and Infinity values (=true) or
# whether JSON5 serialization compliance is acceptable (=false). For strict JSON compliance this
# option should be turned on. However, the Wica JS library supports JSON5 which allows greater
# flexibility, so for this reason the option is disabled.
wica.stream-quote-numeric-strings= false
# The fields of interest that should be serialized when sending the channel metadata.
# Currently (2019-08-22) this is everything but the WicaServerTimestamp (wsts) field.
wica.stream-metadata-fields-of-interest= type;egu;prec;hopr;lopr;drvh;drvl;hihi;lolo;high;low
#
# Additional Notes on CORS configuration:
#
# The definitions below control how the Wica-HTTP Server enters into so-called "CORS negotiation"
# with web browser clients to determine the browser's behaviour when a script loaded from website A
# attempts to make an HTTP request on a different website B.
#
# Note: this topic is of direct relevance to Wica webpage developers who may want to edit and
# load webpages from the local filesystem which subsequently make requests on the Wica-HTTP
# server.
#
# The default settings defined below do not impose any restrictions on the server-side. But note,
# the developer's web browsers may need their security settings configured (= reduced) to allow
# for cross-site working. See the Mozilla developers notes for further information on CORS.
# https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
#
# Please google "Disable CORS in browser" to find the appropriate settings for the browser's
# that you wish to support.
#
# This is a new property since Spring-Boot 2.4.0. Please consult the Spring documentation
# for usage.
# Defines the patterns to be used for CORS authentication.
wica.cors-allowed-origin-patterns *