Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
dev:server:eos:service [2023/01/31 19:13]
jeroen removed
— (current)
Line 1: Line 1:
-====== Orbit Enterprise Service ====== 
- 
- 
-This page is a glossary and bundles technical information about the Orbit EOS Service and its HTTP Web Service.  
- 
-<note tip> 
-The "Enterprise Orbit Service" or shortened "EOS" is Orbit's core server technologies for central storage, management, and sharing of Reference GIS and 3DM Mapping, Reality Resources. \\ 
-EOS enables corporate management of users, permissions, workspaces, and licenses. It is the backbone for Orbit 3DM Feature Extraction Client-Server setups and Orbit 3DM Publisher. 
-</note> 
- 
-===== Amazon S3 Bucket Cloud Storage Configuration ===== 
- 
-Orbit EOS configuration to connect and load resources from Amazon S3 Bucket cloud blob storage. 
- 
-  * File: ''../server/program/config/amazon.store.<config.name>.ini'' 
-  * Parameters 
-    * Most parameters are self-explaining. 
-    * config.name: Orbit configuration name for the cloud storage. Free of choice, lower case, no special characters. \\ Use the prefix ''am:/<config.name>/'' in the resource file path to access the root folder of the AWS Bucket. 
-    * region.name: Amazon regional endpoint code, see https://docs.aws.amazon.com/general/latest/gr/rande.html 
-  
-<code> 
-type amazon 
-access.key xxx 
-secret.key xxx 
-region.name xxx 
-bucket.name xxx 
-readonly true 
-cache true 
-cache.expire.time 172800.0 
-file.content.read.thread.count 12 
-</code> 
- 
-===== Azure Container Cloud Storage Configuration ==== 
- 
-Orbit EOS configuration to connect and load resources from a Microsoft Azure Container cloud blob storage. 
- 
-  * File: ''../server/program/config/azure.store.<config.name>.ini'' 
-  * Parameters 
-    * Most parameters are self-explaining. 
-    * config.name: Orbit configuration name for the cloud storage. Free of choice, lower case, no special characters. \\ Use the prefix ''az:/<config.name>/'' in the resource file path to access the root folder of the Azure Container. 
-    * region.name: Regional endpoint code 
- 
-<code> 
-account.name xxx 
-account.key xxx 
-container.name xxx 
-readonly true 
-region.name xxx 
-</code> 
- 
-===== Cross Domain Communication ===== 
- 
-When embedding and accessing an Orbit Flash WebClient via another server in another domain, cross-domain communication needs to be authorized by the Orbit Publisher HTTP Web Service. \\ 
-This is authorization is required by use of Adobe Flash, more information :  
-  * http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html 
-  * http://helpx.adobe.com/flash-player/kb/authorization-header-request-flash-player.html 
- 
-=== Server configurations === 
- 
-Cross-Domain configurations are applied at loading the Flash WebClient. To update this configuration the Orbit Service doesn't need to be restarted.  
- 
-  * ''../server/program/wwwroot/crossdomain.xml'' 
- 
-The example below will authorize all cross domain communication : 
- 
-<code html> 
-<cross-domain-policy> 
- <site-control permitted-cross-domain-policies="all" />  
- <allow-http-request-headers-from domain="*" headers="*" secure="false"/> 
- <allow-access-from domain="*" secure="false"/> 
-</cross-domain-policy> 
-</code> 
- 
-===== Download Time-Out ===== 
- 
-Configuration to set URL to connect and download time-out. 
- 
-  * File : ''../server/program/config/server.ini'' 
-  * Parameters :  
-    * ''urldownloader.timeout.connect'' 
-    * ''urldownloader.timeout.read'' 
-  * Value : Milliseconds as integer value 
-  * Default Value : 60000 
- 
-<code> 
-urldownloader.timeout.connect      120000 
-urldownloader.timeout.read         120000 
-</code> 
-===== DOX ===== 
- 
-** Desktop Client-Server Communication ** 
- 
-The Orbit toolkit is network-neutral. Connectivity requires an IP-resolve system (such as a DNS). The Data Orbit eXchange protocol or shortened "DOX" protocol is Orbit's proprietary communication protocol between the Orbit tiers. 
- 
-DOX requires only 1 port to be accessible from the outside. Firewalls thus need only to open 1 port to allow remote access to an Orbit server system (in contradiction to standard Java RMI connectivity). \\ 
-DOX is a compressed and binary way to do the communication between Orbit Client and Orbit Server in the most secure, simple, and fast way. It has no relation with HTTP or the alikes, but of course, runs over Tcp/Ip. \\ 
-DOX does not influence any other protocol and cannot be hacked. 
- 
-All Orbit Products are able to access remote EOS resources and instantly become client/server applications, providing access to corporate resources. Most Orbit products are available both in Standalone as in Client-Server. \\  
- 
-===== EOS Install ===== 
- 
-EOS is a running operating system service and is preferably installed and started using an OS administrator account. The used account must have full permission to read and write into the entire Orbit server installation directory. Read access is required for all resources used by EOS. 
- 
-A proper EOS service start, stop and remove are possible as OS administrator using the Orbit shortcuts within the Orbit installation directory :  
-  * ''../server/program/bin/'' 
- 
-** Stop & Start ** \\ 
-When updating the Orbit Server software or applying hardware maintenance it will be required to stop and restart the Orbit Service. The service needs to be installed before starting and stopped before removing. \\ 
-Use of the Orbit Service shortcuts is recommended at all time, verify successful Service Install, Start, Stop and Remove using the OS Services Management Console. 
- 
-** Multiple instances ** \\ 
-The name of an operating system service supposed to be unique. \\ 
-To install multiple Orbit Services on a single server the Orbit Service Name of the second instance will need to be renamed before installing :  
-  * Windows : ''../server/program/bin/ServiceInstall.bat'' 
-<code> 
-.. 
-set SERVICE_DISPLAY_NAME=Orbit Enterprise Service 2 
-set SERVICE_DESCRIPTION=The Orbit application service 2 
-... 
-.. //IS//Orbit_2 .. 
-</code> 
- 
-===== EOS Logging ===== 
- 
-The activity and tasks completed by the EOS service are logged by default into following directory :  
-  * ''../server/log/eos/'' 
- 
-These log files contain only the most recent activity of the EOS service. For reasons of disk space, only 10  files of 8MB each are stored. The most recent log file has no index suffix. 
- 
-=== Server Configurations === 
- 
-Orbit Server configurations are applied at Service Start. To update this configuration the Orbit Service must be stopped and restarted after changing the configurations. 
- 
-  * ''../server/program/config/server.ini'' 
- 
-<code> 
-system.logfile <SYSTEMPATH>/log/eos/server.log 
-system.logfile.pagecount 8  
-system.logfile.pagesize 16  
-system.logall true 
-</code> 
- 
-===== File Access and Permission ===== 
- 
-The Orbit EOS service reads all resource requested by Orbit Clients and read & writes configurations as set by the EOS Console. \\ 
-Consequently, Orbit EOS Service requires read access on all used resource files and read & write access to all Orbit setup and configuration files.\\ 
- 
-=== Access to network resources === 
- 
-Special attention is required regarding file access permissions for the Operating System User running the EOS service. \\ 
-Additional note on Windows, Mapped Network Drives are not available to Operating System Services, use of [[http://en.wikipedia.org/wiki/Uniform_Naming_Convention#Uniform_Naming_Convention|Uniform Naming Convention]] (UNC) is required.  
- 
-When adding resources to EOS, using the [[dev:server:publisher_console:index|Publisher Console]] or [[dev:server:console:resources:datasets_setup|legacy EOS console]] ensure the EOS service has access to the added resources at all time. \\ 
- 
-=== Access to system configuration files === 
- 
-Disk space or file access issues on EOS configuration files will result in corrupted configurations and software malfunction. Ensure there is enough disk space and all EOS configuration files are accessible at all times. 
- 
-=== User Account in Server Configurations === 
- 
-Orbit EOS Service account settings are applied at Service Install. \\ 
-One can use the Operating System services management console to update the User Account or add User credentials into the Orbit service installation files. \\ 
-Configuration update on the Service installation files requires the Orbit Service to be be stopped, removed, updated, re-installed, and restarted. Verify the update using the OS Services Management Console. 
- 
-  * ''../server/program/bin64/ServiceInstall.bat'' 
- 
-<code> 
-set SERVICE_USER=--ServiceUser=<Domain>\<UserName> --ServicePassword=<UserPassword> 
-</code> 
- 
- 
-===== HTTP Proxy ===== 
- 
-The default configurations for all outgoing HTTP and HTTPS requests can be updated. However, we do advise to use the default operating system proxy settings. 
- 
-=== Server Configurations === 
- 
-Proxy configurations are applied at Service Install. To update this configuration the Orbit Service must be stopped, removed, updated, re-installed, and restarted.  
- 
-Add the following Java VM arguments into : 
- 
-  * Linux : ''../server/program/bin/wrapper.conf'' > ''Java Additional Parameters'' 
-  * Windows : ''../server/program/bin/ServiceInstall.bat'' > ''JAVA_OPTIONS'' 
- 
-**Set system proxy settings** 
-<code> 
--Djava.net.useSystemProxies=true 
-</code> 
- 
-**Set other proxy settings** \\ 
-Below for https, for http replace "-Dhttps" by "-DHttp" : \\ 
-<code> 
--Dhttps.proxyHost=0.0.0.0 
--Dhttps.proxyPort=0000 
--Dhttps.proxyUser=xxx 
--Dhttps.proxyPassword=xxx 
-</code>  
- 
-Https example for Linux : \\ 
-<code> 
-# Java Additional Parameters 
-wrapper.java.additional.1=-Xrs 
-wrapper.java.additional.2=-Djava.awt.headless=true 
-wrapper.java.additional.3=-Dhttps.proxyHost=0.0.0.0 
-wrapper.java.additional.4=-Dhttps.proxyPort=0000 
-wrapper.java.additional.5=-Dhttps.proxyUser=xxx 
-wrapper.java.additional.6=-Dhttps.proxyPassword=xxx 
-</code> 
- 
-When using a proxy that doesn't require user validation, parameters "proxyUser" and "proxyPassword" should not be added.  
- 
-=== Client Configurations === 
- 
-Orbit desktop client proxy settings are applied on starting the Desktop Client application. 
- 
-Add the following Java VM arguments into : 
-  * Windows : ''../client/program/bin64/OrbitClient.ini''  \\ Make sure to enter the proxy configuration in between the -Xmx and -splash arguments.  
- 
-<code> 
--Dhttp.proxyHost=0.0.0.0 
--Dhttp.proxyPort=0000 
--Dhttps.proxyHost=0.0.0.0 
--Dhttps.proxyPort=0000 
-</code> 
- 
- 
-===== HTTP Workthreads ===== 
- 
-The default number of concurrent Threads is 32 and a backlog of 64 Tasks. \\ 
-Related to the available Cores the number of concurrent threads and backlog tasks can be increased.  
- 
-=== Server Configurations === 
- 
-Work thread configurations are applied at Service Start. To update this configuration the Orbit Service must be stopped, updated and restarted. 
- 
-  * ''../server/program/config/server.ini'' 
- 
-<code> 
-portserver.HTTP.workthread.count 32  
-portserver.HTTP.maximum.pending.requests 64 
-</code> 
- 
-===== HTTPS ===== 
- 
-** WebClient - Server communication ** 
- 
-The Orbit Publisher includes an HTTP or HTTPS Web Server. One or the other, not both together. Incoming HTTP requests can be redirected to HTTPS services \\ 
-By default, an HTTP Web Service is configured. Below the documentation on how to configure an HTTPS Web Service. 
- 
-The Http(s) Web Service is used for Publisher WebClient ("Publication") - Server and EOS WebClient ("EOS Console") - Server communication. 
- 
-=== KeyStore File === 
- 
-Orbit supports both PKCS 12 and Java KeyStore files. \\ 
-The password-protected KeyStore file must contain your Private Key and full Certificate Chain from Root to Public Domain Certificate. 
- 
-Certificate submitting and KeyStore file creation must be completed prior to configuring the Orbit Web Server from HTTP to HTTPS. \\ 
-More information, see [[https://en.wikipedia.org/wiki/Authorization_certificate|Wikipedia Authorization Certifcate]], [[https://en.wikipedia.org/wiki/Public_key_infrastructure|Wikipedia Public Key]], [[https://en.wikipedia.org/wiki/Keystore|Wikipedia Java Keystore]], [[https://en.wikipedia.org/wiki/PKCS_12|Wikipedia PKCS 12]]. 
- 
-=== Server configurations === 
- 
-These Web Server configurations are applied at Service Start. To update this configuration the Orbit Service must be stopped, updated and restarted.  
- 
-** KeyStore file ** \\ 
-Copy the KeyStore file ''keystore.xxx'' to ''../server/program/services/http/''. \\ 
-Supported KeyStore files : .jks, .jceks, .p12, .pks, .pfx 
- 
-** KeyStore file Password ** \\ 
-Add a ''keystore.pwd'' single line text file next to the KeyStore file. \\  
-The password can be saved as plain text or scrambled, contact Orbit Support. 
- 
-** HTTPS Service ** \\ 
-Configure the HTTP service to operate in HTTPS mode :  
-  * ''../server/program/services/http/service.ini''  
- 
-<code> 
-Parameter=secure:true 
-</code> 
- 
-** Port ** \\ 
-In the same ''service.ini''  file, modify the port to 443:  
-   
-<code> 
-Parameter=port:443 
-</code> 
- 
-===Redirecting from HTTP to HTTPS ===  
- 
-To redirect an existent from HTTP to HTTPS , the procedure described below must be followed: 
- 
-A new folder ''http80'' must be created and placed in:  
- 
-* ''../server/program/services'' 
- 
-The folder must containing a ''service.ini'' file prepared as the example:  
- 
-<code> 
-Services= 
- Service= 
-  Name=HttpService80 
-  ClassName=com.orbitgis.toolx.network.interfaces.http.server.HTTPService 
-  Parameters= 
-   Parameter=secure:false 
-   Parameter=host:all 
-   Parameter=port:80 
-   Parameter=http.get.enable:false 
-   Parameter=http.get.wwwroot:<SYSTEMPATH>/wwwroot 
-   Parameter=run.service.enable:false 
-   Parameter=redirect.to.secure:true 
-</code> 
- 
-=== Additional configuration consequences === 
- 
-For Orbit Publisher EOS-Console users only: 
-  * Enable secure cross-domain communication, see above HTTP Cross-Domain Communication. 
-  * Configure geocoding plugins to communicate via secure HTTPS connection to avoid HTTP-HTTPS netwerk security conflicts. \\ See [[180:server:publishers:publication_template|]]. 
-  * Ensure the Publication Server Url is available via HTTPS , see [[dev:server:console:publishers|]] > Main > Publish. 
- 
- 
-===== Port Allocation ===== 
- 
-By default the EOS service uses TCP port 1100 (DOX), the Orbit Web Service requires port 1111 (HTTP) 
- 
-Communication between Client and Server must be available at all times.  A client, server, or network blocking firewall on these ports will result in run time errors. \\ 
-The default server and port configuration can be changed if required. However, we do advise to use a reverse proxy instead. 
- 
-=== Server Configurations === 
- 
-Port configurations are applied at Service start. To update this configuration the Orbit Service must be stopped, updated, and restarted. \\ 
-Server side Service configuration files :  
-  * ''../server/program/services/dox/service.ini'' 
-  * ''../server/program/services/http/service.ini'' 
- 
-=== Client Configurations === 
- 
-Desktop Client side configuration file :  
-  * ''../client/program/login.ini'' 
- 
-===== Port Logging ===== 
- 
-The activity on Dox and HTTP ports can be logged (default "false") into following directory :  
-  * ''../server/log/portserver/'' 
- 
-=== Server Configurations === 
- 
-Portserver logging configurations are applied at Service Start. To update this configuration the Orbit Service must be stopped, updated, and restarted. 
- 
-  * ''../server/program/config/server.ini'' 
- 
-<code> 
-portserver.logging.enabled false 
-portserver.logging.interval 10 
-portserver.logging.location <SYSTEMPATH>/log/portserver/<TIMESTAMP>.log 
-</code> 
- 
-===== Procrun Service ===== 
- 
-On Windows Orbit uses the Procrun Service to start and run the EOS Service. \\  
-The Procrun Service creates by default 2 log files : 
-  * ''C:/Windows/System32/LogFiles/Apache/name-stderr.date'' > e.g. "orbit-stderr.2015-04-14" : Log of service install 
-  * ''C:/Windows/System32/LogFiles/Apache/nname-stdout.data'' > e.g. "orbit-stdout.2015-04-14" : Log of Procrun Service used by Orbit 
- 
-The sum of all these files can become very big and may result in the C:/ partition running out of space. Disable this service logging to avoid a relatively small C partition to run out of space. \\ 
-To disable Procrun logging following server-side configuration file must be updated. 
- 
-=== Server Configurations === 
- 
-Procrun Service configurations are applied at Service Install. To update this configuration the Orbit Service must be stopped, removed, updated, re-installed and restarted.\\ \\ Verify the User Account “Orbit Enterprise Service” before removing the service. Check the service credentials at the “Log On” panel of the Operating System Service “Properties” window. Before restarting the Orbit Service, it is required to change the credentials back to the actual configuration. 
- 
-  * Windows : ''../server/program/bin64/ServiceInstall.bat''   
- 
-Logging enabled :  
-<code> 
---StdOutput=auto 
---StdError=auto 
-</code>  
- 
-Logging disabled :  
-<code> 
---StdOutput= 
---StdError= 
-</code> 
- 
-===== Test Services ===== 
- 
-The availability of the HTTP Web Service or a specific Publication can be verified by requesting respectively the Web Service cross domain configuration or the publication html web page : 
-  * ''<nowiki>http://<server>:<port>/publications/<publication>/index.html</nowiki>'' 
-  * ''<nowiki>http://<server>:<port>/crossdomain.xml</nowiki>'' 
- 
-A TestService is available to request detailed runtime information about all EOS Services. Optionally a TestMask can be applied. Below the example for "StartTime". 
-  * ''<nowiki>http://<server>:<port>/?service=TestService&request=RunTestOperation</nowiki>'' 
-  * ''<nowiki>http://<server>:<port>/?service=TestService&request=RunTestOperation&TestMask=ServiceContainer.System.StartTime</nowiki>'' 
- 
-===== WMS and WFS Hosting ===== 
- 
-The Orbit EOS server includes the capability to provide OGC compliant WFS (version 1.1.1) and WMS (version 1.1.0) services for EOS Resources.  
- 
-More information about the OGC WFS and WMS specifications :  
-  * http://www.opengeospatial.org/standards/wfs 
-  * http://www.opengeospatial.org/standards/wms 
- 
-Customization of the Orbit WMS and WFS services can be achieved via the configuration.xml file. Next to some service settings and specifications, the list of available layers can be restricted.  
- 
-When removing this configuration.xml file : 
-  * a default set of service settings and specifications will be used 
-  * user authentication will be required at all time 
-  * the list of available layers will be set to all dataset for which the user has EOS view permissions 
- 
-=== Server Configurations === 
- 
-WMS and WFS configurations are applied at Service Start. To update this configuration the Orbit Service must be stopped, updated, and restarted. 
- 
-  * ''../server/program/services/wfs/configuration.xml'' 
-  * ''../server/program/services/wms/configuration.xml'' 
- 
-** Example for WFS ** \\ 
-This example includes all available tags to configure the Orbit WFS service.  
- 
-<code html> 
-<Configuration> 
- <URLPrefix>wfs</URLPrefix> 
- <ServiceTitle>Orbit WFS</ServiceTitle> 
- <ServiceAbstract>Web Feature Service powered by Orbit GT Technology</ServiceAbstract> 
- <ServiceKeyword>Orbit GT</ServiceKeyword> 
- <ServiceKeyword>EOS Resources</ServiceKeyword> 
- <ServiceProviderName>Orbit GT</ServiceProviderName> 
- <ServiceProviderSite>https://orbitgt.com</ServiceProviderSite> 
- <DataSet> 
- <DataSetName>Flanders_Buildings</DataSetName> 
- </DataSet> 
- <DataSet> 
- <DataSetName>Flanders_Parcels</DataSetName> 
- </DataSet> 
- <CRS>31370</CRS> 
- <CRS>3395</CRS> 
- <CRS>4258</CRS> 
- <CRS>4326</CRS> 
- <FixedUsername>guest</FixedUsername> 
- <FixedPassword>guest</FixedPassword> 
- <IsMaxFeaturesEnabled>true</IsMaxFeaturesEnabled> 
- <DefaultMaxFeatures>10000</DefaultMaxFeatures> 
-</Configuration> 
-</code> 
- 
-** Example for WMS ** \\ 
-This example includes all available tags to configure the Orbit WMS service.  
- 
-<code html> 
-<Configuration> 
- <URLPrefix>wms</URLPrefix> 
- <ServiceTitle>Orbit WMS</ServiceTitle> 
- <ServiceAbstract>Web Map Service powered by Orbit GT Technology</ServiceAbstract> 
- <ServiceKeyword>Orbit GT</ServiceKeyword> 
- <ServiceKeyword>EOS Resources</ServiceKeyword> 
- <ServiceRootLayerTitle>Cadastral maps of Flanders</ServiceRootLayerTitle> 
- <DataSet> 
- <DataSetName>Flanders_Buildings</DataSetName> 
- <Abstract>Buildings of Flanders</Abstract> 
- </DataSet> 
- <DataSet> 
- <DataSetName>Flanders_Parcels</DataSetName> 
- <Abstract>Parcel of Flanders</Abstract> 
- </DataSet> 
- <CRS>31370</CRS> 
- <CRS>3395</CRS> 
- <CRS>4258</CRS> 
- <CRS>4326</CRS> 
- <FixedUsername>guest</FixedUsername> 
- <FixedPassword>guest</FixedPassword> 
-</Configuration> 
-</code> 
- 
-=== Tags === 
- 
-For some reason the tags available for WFS and WMS differ, for any explanation see OGC documentation.  \\ 
-Some notes about special tags or values used by Orbit :  
-  * URLPrefix : <server url>:<port>/<URLPrefix>?service=<"wms"/"wfs">&request=getcapabilities 
-  * DataSetName : EOS Dataset Registry Name 
-  * FixedUsername, FixedPassword : EOS Username and Password to access Service. If not set, the username and password will be requested upon accessing the service. The fix or entered user must have EOS permissions to view the configured resources to get access to this resource. 
-  * IsMaxFeaturesEnabled : Highly recommended setting to restrict the maximum number of features that can be replied to on a single feature request.  
-===== Workspace configurations ===== 
- 
-As optional server side configuration it is possible to use a dedicated set of configurations for a given service depending on the used Orbit desktop client workspace.  
- 
-All server-side service configurations are grouped in the according properties.ini or properties.xml configuration file. It is possible to create a separated "properties_<workspace>" service configuration file for any known Orbit workspace. This duplicated service configuration file makes it possible to set private service configurations for a given workspace. 
-