-
-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathapplication.properties
More file actions
281 lines (255 loc) · 13 KB
/
application.properties
File metadata and controls
281 lines (255 loc) · 13 KB
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
# specifiy different properties file with --spring.config.location=yourfile
# override any property with --property=yourvalue
# Disable resource caching during development
# doesn't seem to change anything
spring.web.resources.chain.cache=false
server.tomcat.resource.allow-caching=false
server.error.include-stacktrace=never
# used for management servlet file upload
spring.servlet.multipart.maxFileSize=1GB
spring.servlet.multipart.maxRequestSize=1GB
logging.level.org.vrspace.*=DEBUG
#these can be very verbose:
logging.level.org.vrspace.server.obj.Client=INFO
logging.level.org.vrspace.server.core.SessionManager=INFO
logging.level.org.vrspace.server.core.Dispatcher=INFO
logging.level.org.vrspace.server.core.WriteBack=INFO
logging.level.org.vrspace.server.core.Scene=INFO
logging.level.org.vrspace.server.core.VRObjectRepository=INFO
#logging.level.org.vrspace.client.VRSpaceClient=DEBUG
#prevent bogus warning:
logging.level.org.springframework.data.neo4j.core.mapping=ERROR
# Admin UI activation and params
org.vrspace.adminUI.enabled=false
org.vrspace.adminUI.path=/admin
org.vrspace.adminUI.contentRoot=../content
# FIXME reconfigures all controllers, and even websockets
#spring.mvc.servlet.path=${org.vrspace.adminUI.path}
# experimental writeback, enabled by default, delay 1000 ms
#org.vrspace.writeback.enabled=true
#org.vrspace.writeback.delay=1000
# server parameters
# use this when running behind reverse proxy, defaults to false
org.vrspace.server.behindProxy=true
# these are your own server parameters to be advertised in vrspace.org galaxy
org.vrspace.server.description=developer
org.vrspace.server.url=localhost
org.vrspace.server.thumbnail=/content/worlds/galaxy.jpg
org.vrspace.server.available=false
org.vrspace.server.advertise=true
# enable remote browsing with Selenium? requires firefox
#org.vrspace.server.selenium-enabled=true
# websocket path for client connections, default /vrspace/client
#org.vrspace.server.socketPath=/vrspace/client
# websocket path for server connections, default /vrspace/server
#org.vrspace.server.socketPath=/vrspace/server
# allowed origins, default * (connect from everywhere)
#org.vrspace.server.allowedOrigins=*
# allow and auto-create guest clients, default true
#org.vrspace.server.guestAllowed=true
# create worlds automatically on enter command
#org.vrspace.server.createWorlds=true
# required url prefix of scripted objects
#org.vrspace.server.allowedScriptPath=/babylon/js
# maximum number of sessions, default 0 = unlimited
#org.vrspace.server.maxSessions=100
# max seconds waiting for session to start, default 0 = no wait
#org.vrspace.server.sessionStartTimeout=3600
# allow websocket-only sessions, default true
# disabling this disables automatic websocket reconnect,
# since HTTP request has to be made first to create the session
#org.vrspace.server.websocketSessions=true
# Maximum number of connections that the server will accept and process at any given time.
#server.tomcat.max-connections=
# database configuration
# by default, use embedded database
#org.vrspace.db.embedded=true
# database directory relative to server dir
#org.vrspace.db=file:./vrspace.db
# or, store it in your home dir
#spring.neo4j.uri=file://${user.dir}/vrspace.db
# connect to DBMS
# make sure to use the exact same database version 4.3.6
# default connection properties
#spring.neo4j.uri=bolt://localhost
#spring.neo4j.authentication.username=neo4j
#spring.neo4j.authentication.password=vrspace
# actuator config (runtime status endpoints)
management.endpoints.web.exposure.include=info,health
# this adds git info to /actuator endpoint
management.info.git.enabled=true
management.info.git.mode=full
# endpoint discovery is enabled by default (all endpoints listed under /actuator)
#management.endpoints.web.discovery.enabled=false
# REST API doc/UI endpoint
#springdoc.api-docs.path=/v3/api-docs
#springdoc.swagger-ui.path=/swagger-ui.html
# audio/video conferencing server:
#docker run -p 4443:4443 --rm -e FORCE_PLAIN_HTTP=false -e SERVER_SSL_ENABLED=true -e OPENVIDU_SECRET=MY_SECRET -e DOMAIN_OR_PUBLIC_IP=192.168.1.115 openvidu/openvidu-dev:2.32.1
#openvidu.publicurl=https://192.168.1.115:4443/
#openvidu.secret=MY_SECRET
# Embedded web application server configuration
#server.forward-headers-strategy=framework # may be useful behind proxy
server.error.whitelabel.enabled=false
# CHECKME: these may change error handling
# false = NoHandlerFoundExcepton no endpoint, true = NoResourceFoundException no static resource
#spring.web.resources.add-mappings=false
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration
# HTTPS-enabled server:
# (cert generated with)
# keytool -genkeypair -alias vrspace -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore src/main/resources/localhost.p12 -validity 3650
server.ssl.key-store-type=PKCS12
server.ssl.key-store=classpath:localhost.p12
server.ssl.key-store-password=vrspace
server.ssl.key-alias=vrspace
server.ssl.enabled=false
# default port 8080
#server.port=8443
# enables http2 starting with java 9:
# test with: curl -v --http2 http://localhost:8080/
server.http2.enabled=false
# allows embedded server to serve content
server.servlet.register-default-servlet=true
# session timeout, default 30m
server.servlet.session.timeout=60m
# embeded tomcat logs - useful when debugging proxies
server.tomcat.accesslog.enabled=false
#server.tomcat.accesslog.directory=c:/dev/prj/vrspace/server/logs
logging.level.org.apache.tomcat=WARN
logging.level.org.apache.catalina=WARN
# Replacing core components - see FactoryConfig
# Client factory
#org.vrspace.server.clientFactory=org.vrspace.server.core.DefaultClientFactory
# Sketchfab oauth login params, used for download of free models
# server admin must register app at sketcfab
# these are parameters of registered vrspace-local app
sketchfab.clientId=2knCZ5VhpSCszqR8BFhwB1A3S1O1dSdTceShcPDR
sketchfab.clientSecret=q5cic4LezK1I6w1YZP0wrBB0qFaLMdq3Odmex5vfB5IhMuf30ZV0tqXkoerCJc4ixg9bs9nYezxUNHGCX9PAjD5H7N38zMoXxsWp7syIRG04iy75k4wE3L8UoYuvd9Po
sketchfab.redirectUri=http://localhost:8080/vrspace/api/sketchfab/oauth2
# web push
# generate private/public key pair:
# https://github.com/web-push-libs/webpush-java/wiki/VAPID
# then convert it to Base64 as in
# https://gist.github.com/bschlief/0665d45c0368dcd5d7344221c1f6aa94
#webpush.privateKey=YourBase64privateKey
#webpush.publicKey=YourBase64publicKey
#webpush.subject=vrspace-dev
# enable oauth2
org.vrspace.oauth2.enabled=true
# other vrspace at localhost oauth2 registrations
spring.security.oauth2.client.registration.facebook.client-id=1498856370497707
spring.security.oauth2.client.registration.facebook.client-secret=661c91c773a00bc7a2720b9811c2e940
spring.security.oauth2.client.registration.facebook.redirect-uri=https://localhost/login/oauth2/code/facebook
spring.security.oauth2.client.registration.github.client-id=cb38fa804d01c853b4eb
spring.security.oauth2.client.registration.github.client-secret=ea53239fa4b5909428b6f57f04c04a37b6ad1912
spring.security.oauth2.client.registration.github.redirectUri=http://localhost:8080/login/oauth2/code/github
spring.security.oauth2.client.registration.google.client-id=103952424287-vkb5je73ifp437jdc572476kbblkg1p9.apps.googleusercontent.com
spring.security.oauth2.client.registration.google.client-secret=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
spring.security.oauth2.client.registration.google.redirect-uri=https://localhost/login/oauth2/code/google
# botlibre.com is no more
# botlibre.biz dropped AIML support
# this may not work any longer
#org.vrspace.server.bot.test2.name=BrainBot
#org.vrspace.server.bot.test2.type=BotLibre
#org.vrspace.server.bot.test2.url=https://www.botlibre.com/rest/json/chat
#org.vrspace.server.bot.test2.params={"application":"8324086945984096370", "instance":"43300259"}
#org.vrspace.server.bot.test2.world=aladin
#org.vrspace.server.bot.test2.mesh=/content/char/brainbot.glb
#org.vrspace.server.bot.test2.position=0,0.8,-25
#org.vrspace.server.bot.test2.rotation=0,3.14,0
#org.vrspace.server.bot.test2.scale=1,1,1
# default: male
#org.vrspace.server.bot.test2.gender=female
# default: first in the browser
#org.vrspace.server.bot.test2.lang=en-GB
# list pre-defined, permanent worlds like this:
org.vrspace.server.world.vrcraft.name=vrcraft
# galaxy world on vrspace.org is configured like this:
org.vrspace.server.world.galaxy.name=galaxy
org.vrspace.server.world.galaxy.type=ServerWorld
org.vrspace.server.world.galaxy.portalScript=/babylon/js/scripts/web-portal.js
org.vrspace.server.world.galaxy.portalThumbnail=/content/worlds/galaxy.jpg
# set this to your homepage url
#org.vrspace.server.world.galaxy.url=http://www.vrspace.org/
# forward (almost) all events to elasticsearch on url
# with API key (e.g. generated in kibana)
# into specified index
#org.vrspace.server.session-listener.es.url=http://172.31.58.58:9200
#org.vrspace.server.session-listener.es.key=cXRUVXNaTUJJTnktejNJbGNfSG06NW9ZeGl1ZGFSVzY0Nm0yV2dGZy10Zw==
#org.vrspace.server.session-listener.es.index=vrspace
# enable connection to local Ollama
org.vrspace.ollama.enabled=true
# enable ollama agents API
org.vrspace.ollama.agents=true
# automatic pull, requires additional-models
#spring.ai.ollama.init.pull-model-strategy=when_missing
#spring.ai.ollama.init.chat.additional-models=ministral-3
org.vrspace.ollama.model.vision=ministral-3:3b
org.vrspace.ollama.model.tools=ministral-3:3b
# default numCtx is 2048, way too small
# 8192 swapping with 3d graphics on and 7-8b model
# 16384 too much for 16G VRAM with 7-8b model
# 32768 useful with 3b model, takes about 8G VRAM
# 65536 11G VRAM with 3b model
org.vrspace.ollama.contextWindowSize=65536
# how long to keep unused model in VRAM, default 1m, -1m means forever
org.vrspace.ollama.keepAlive=-1m
# chat memory size, 0 to disable, default 11 (1x system message + 5x query+response)
org.vrspace.ollama.memorySize=11
# initialize vector store:
spring.ai.vectorstore.neo4j.initialize-schema=true
# supposedly default that prevents "the input length exceeds the context length" error:
spring.ai.ollama.embedding.options.truncate=true
# -1m means keep it in VRAM forever
spring.ai.ollama.embedding.options.keep_alive=-1m
# default:
#spring.ai.ollama.embedding.options.model=mxbai-embed-large
# larger context, text only, smaller, supposedly faster:
spring.ai.ollama.embedding.options.model=nomic-embed-text
# example ollama chatbot in aladin space:
org.vrspace.server.bot.aladin.name=JoBot
org.vrspace.server.bot.aladin.type=OllamaBot
org.vrspace.server.bot.aladin.gender=male
org.vrspace.server.bot.aladin.url=http://localhost:11434
org.vrspace.server.bot.aladin.world=aladin
org.vrspace.server.bot.aladin.mesh=/content/char/joe.glb
org.vrspace.server.bot.aladin.position=-3,0.8,-25
org.vrspace.server.bot.aladin.rotation=0,3,0
org.vrspace.server.bot.aladin.scale=1,1,1
org.vrspace.server.bot.aladin.async=true
org.vrspace.server.bot.aladin.lang=en-GB
# two bots, talking to each other:
#org.vrspace.server.bot.test1.name=AlBot
#org.vrspace.server.bot.test1.type=OllamaBot
#org.vrspace.server.bot.test1.gender=male
#org.vrspace.server.bot.test1.url=http://localhost:11434
#org.vrspace.server.bot.test1.world=aladin
#org.vrspace.server.bot.test1.mesh=/content/char/rpm-male.glb
#org.vrspace.server.bot.test1.position=-3,0.8,-25
#org.vrspace.server.bot.test1.rotation=0,3,0
#org.vrspace.server.bot.test1.scale=1,1,1
#org.vrspace.server.bot.test1.async=true
#org.vrspace.server.bot.test1.respondToBots=true
#org.vrspace.server.bot.test1.range=10
#org.vrspace.server.bot.test2.name=IzBot
#org.vrspace.server.bot.test2.type=OllamaBot
#org.vrspace.server.bot.test2.gender=female
#org.vrspace.server.bot.test2.url=http://localhost:11434
#org.vrspace.server.bot.test2.world=aladin
#org.vrspace.server.bot.test2.mesh=/content/char/rpm-female.glb
#org.vrspace.server.bot.test2.position=0,0.8,-25
#org.vrspace.server.bot.test2.rotation=0,3.5,0
#org.vrspace.server.bot.test2.scale=1,1,1
#org.vrspace.server.bot.test2.async=true
#org.vrspace.server.bot.test2.respondToBots=true
#org.vrspace.server.bot.test2.animations=acknowledging,idle_stand,maybe,sad,ta-da,victory,fist-pump-yes,laughing,pointing,salute,clapping,looking,praying-please,standing,thankful,frighten,surprised
#org.vrspace.server.bot.test2.params={"tools":"responding,lookAt,rotate,setRotation,move,gesture", "system":"\
#You are {botName}, a friendly chatbot in a virtual world. \
#In world coordinate system, x axis points east, y axis points up, z axis points north. All coordinates are absolute. \
#Rotation is counter-clockwise, around the orthogonal axis. \
#Your avatar can move in the world, and perform gestures, one at a time. \
#You can rotate around y axis, 0 means looking north, 3.14 south, 1.57 east, -1.57 west. \
#Information about your avatar and list of gestures are in the context. \
#You can stop or continue responding to queries if instructed so. \
#The context also contains world and user information, and information about world objects and other users. \
#"}