|
| 1 | +<orient-server> |
| 2 | + <handlers> |
| 3 | + <!-- DISABLED--> |
| 4 | + <!--<handler class="com.orientechnologies.orient.graph.handler.OGraphServerHandler">--> |
| 5 | + <!--<parameters>--> |
| 6 | + <!--<parameter name="enabled" value="true"/>--> |
| 7 | + <!--<parameter name="graph.pool.max" value="50"/>--> |
| 8 | + <!--</parameters>--> |
| 9 | + <!--</handler>--> |
| 10 | + <!-- CLUSTER PLUGIN, TO TURN ON SET THE 'ENABLED' PARAMETER TO 'true' --> |
| 11 | + <handler class="com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin"> |
| 12 | + <parameters> |
| 13 | + <!-- <parameter name="nodeName" value="europe1" /> --> |
| 14 | + <parameter name="enabled" value="${distributed}"/> |
| 15 | + <parameter name="configuration.db.default" |
| 16 | + value="${ORIENTDB_HOME}/config/default-distributed-db-config.json"/> |
| 17 | + <parameter name="configuration.hazelcast" value="${ORIENTDB_HOME}/config/hazelcast.xml"/> |
| 18 | + </parameters> |
| 19 | + </handler> |
| 20 | + <!-- JMX SERVER, TO TURN ON SET THE 'ENABLED' PARAMETER TO 'true' --> |
| 21 | + <handler class="com.orientechnologies.orient.server.handler.OJMXPlugin"> |
| 22 | + <parameters> |
| 23 | + <parameter name="enabled" value="false"/> |
| 24 | + <parameter name="profilerManaged" value="true"/> |
| 25 | + </parameters> |
| 26 | + </handler> |
| 27 | + <!-- AUTOMATIC BACKUP, TO TURN ON SET THE 'ENABLED' PARAMETER TO 'true' --> |
| 28 | + <handler class="com.orientechnologies.orient.server.handler.OAutomaticBackup"> |
| 29 | + <parameters> |
| 30 | + <parameter name="enabled" value="false"/> |
| 31 | + <!-- LOCATION OF JSON CONFIGURATION FILE --> |
| 32 | + <parameter name="config" value="${ORIENTDB_HOME}/config/automatic-backup.json"/> |
| 33 | + </parameters> |
| 34 | + </handler> |
| 35 | + <!-- SERVER SIDE SCRIPT INTERPRETER. WARNING, THIS CAN BE A SECURITY HOLE BECAUSE MALICIOUS CODE COULD BE INJECTED. |
| 36 | + ENABLE IT ONLY IF CLIENTS ARE TRUSTED, TO TURN ON SET THE 'ENABLED' PARAMETER TO 'true' --> |
| 37 | + <handler |
| 38 | + class="com.orientechnologies.orient.server.handler.OServerSideScriptInterpreter"> |
| 39 | + <parameters> |
| 40 | + <parameter name="enabled" value="true"/> |
| 41 | + <parameter name="allowedLanguages" value="SQL,GREMLIN"/> |
| 42 | + <!-- Comma separated packages allowed in JS scripts eg. java.math.*, java.util.ArrayList --> |
| 43 | + <parameter name="allowedPackages" value=""/> |
| 44 | + </parameters> |
| 45 | + </handler> |
| 46 | + <!-- CUSTOM SQL FUNCTIONS --> |
| 47 | + <handler class="com.orientechnologies.orient.server.handler.OCustomSQLFunctionPlugin"> |
| 48 | + <parameters> |
| 49 | + <!-- LOCATION OF JSON CONFIGURATION FILE --> |
| 50 | + <parameter name="config" value="${ORIENTDB_HOME}/config/custom-sql-functions.json"/> |
| 51 | + </parameters> |
| 52 | + </handler> |
| 53 | + |
| 54 | + </handlers> |
| 55 | + <network> |
| 56 | + <sockets> |
| 57 | + <socket implementation="com.orientechnologies.orient.server.network.OServerTLSSocketFactory" name="ssl"> |
| 58 | + <parameters> |
| 59 | + <parameter value="false" name="network.ssl.clientAuth"/> |
| 60 | + <parameter value="config/cert/orientdb.ks" name="network.ssl.keyStore"/> |
| 61 | + <parameter value="password" name="network.ssl.keyStorePassword"/> |
| 62 | + <parameter value="config/cert/orientdb.ks" name="network.ssl.trustStore"/> |
| 63 | + <parameter value="password" name="network.ssl.trustStorePassword"/> |
| 64 | + </parameters> |
| 65 | + </socket> |
| 66 | + <socket implementation="com.orientechnologies.orient.server.network.OServerTLSSocketFactory" name="https"> |
| 67 | + <parameters> |
| 68 | + <parameter value="false" name="network.ssl.clientAuth"/> |
| 69 | + <parameter value="config/cert/orientdb.ks" name="network.ssl.keyStore"/> |
| 70 | + <parameter value="password" name="network.ssl.keyStorePassword"/> |
| 71 | + <parameter value="config/cert/orientdb.ks" name="network.ssl.trustStore"/> |
| 72 | + <parameter value="password" name="network.ssl.trustStorePassword"/> |
| 73 | + </parameters> |
| 74 | + </socket> |
| 75 | + </sockets> |
| 76 | + <protocols> |
| 77 | + <!-- Default registered protocol. It reads commands using the HTTP protocol |
| 78 | + and write data locally --> |
| 79 | + <protocol name="binary" |
| 80 | + implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary"/> |
| 81 | + <protocol name="http" |
| 82 | + implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"/> |
| 83 | + </protocols> |
| 84 | + <listeners> |
| 85 | + <listener protocol="binary" ip-address="0.0.0.0" port-range="2424-2430" socket="default"/> |
| 86 | + <listener protocol="http" ip-address="0.0.0.0" port-range="2480-2490" socket="default"> |
| 87 | + <parameters> |
| 88 | + <!-- Connection's custom parameters. If not specified the global configuration |
| 89 | + will be taken --> |
| 90 | + <parameter name="network.http.charset" value="utf-8"/> |
| 91 | + <parameter value="true" name="network.http.jsonResponseError"/> |
| 92 | + <parameter value="Content-Security-Policy: frame-ancestors 'none'" name="network.http.additionalResponseHeaders"></parameter> |
| 93 | + <!-- Define additional HTTP headers to always send as response --> |
| 94 | + <!-- Allow cross-site scripting --> |
| 95 | + <!-- parameter name="network.http.additionalResponseHeaders" value="Access-Control-Allow-Origin: |
| 96 | + *;Access-Control-Allow-Credentials: true" / --> |
| 97 | + </parameters> |
| 98 | + <commands> |
| 99 | + <command |
| 100 | + pattern="GET|www GET|studio/ GET| GET|*.htm GET|*.html GET|*.xml GET|*.jpeg GET|*.jpg GET|*.png GET|*.gif GET|*.js GET|*.css GET|*.swf GET|*.ico GET|*.txt GET|*.otf GET|*.pjs GET|*.svg GET|*.json GET|*.woff GET|*.woff2 GET|*.ttf GET|*.svgz" |
| 101 | + implementation="com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetStaticContent"> |
| 102 | + <parameters> |
| 103 | + <!-- Don't cache html resources in development mode --> |
| 104 | + <entry name="http.cache:*.htm *.html" |
| 105 | + value="Cache-Control: no-cache, no-store, max-age=0, must-revalidate\r\nPragma: no-cache"/> |
| 106 | + <!-- Default caching --> |
| 107 | + <entry name="http.cache:default" value="Cache-Control: max-age=120"/> |
| 108 | + </parameters> |
| 109 | + </command> |
| 110 | + <command pattern="GET|gephi/*" |
| 111 | + implementation="com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetGephi"/> |
| 112 | + |
| 113 | + </commands> |
| 114 | + </listener> |
| 115 | + </listeners> |
| 116 | + <cluster> |
| 117 | + </cluster> |
| 118 | + </network> |
| 119 | + <storages> |
| 120 | + </storages> |
| 121 | + <users> |
| 122 | + </users> |
| 123 | + <properties> |
| 124 | + <!-- PROFILER: configures the profiler as <seconds-for-snapshot>,<archive-snapshot-size>,<summary-size> --> |
| 125 | + <entry name="profiler.enabled" value="false"/> |
| 126 | + <!-- <entry name="profiler.config" value="30,10,10" /> --> |
| 127 | + </properties> |
| 128 | +</orient-server> |
0 commit comments