7.4.12. Infobase publication
"Publication" of the infobase for operating via web server is performed automatically when the standalone server starts. The standalone server acts as the web server. The standalone server provides the same web server access features as a regular publication: web client, thin client via a web server, Internet services, and standard OData interface. The ability to use one or another access method is controlled by the configuration file parameters, with the help of which it is possible to manage the publication parameters.
Some of the publishing parameters can be changed using the standalone server command line:
- --http-base. Allows you to specify a path to a resource that will be used to access the application. The default path is /. This means that you can log in to the web client at http://localhost:8314 address (for default settings). If you specify a value for this parameter, for example, --http-base=/standalone/example, then to access the application you will need to use the http://localhost:8314/standalone/example address.
- --http-port. Network port to be used to access the application. The default value is 8314.
- --http-address. This parameter describes which network interface of the computer will be used to access the publication. The default value is localhost. Other possible values:
- any. Use all available network interfaces.
- xxx.xxx.xxx.xxx. Use the network interface to which the specified IPv4 address is assigned.
- xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx. Use the network interface to which the specified IPv6 address is assigned.
Let's consider a simple example. Suppose we have the standalone server operating with the infobase in file mode. This standalone server is started by the command line:
ibsrv --database-path="c:\db\standalone-server\demo"
In this case, the infobase of this server will be accessible at the http://localhost:8341 address when accessing from the computer on which the standalone server is running.
Suppose you want to provide web access to this infobase at the :8080/standalone/demo">http://<pc-addr>:8080/standalone/demo address. To achieve the result, it will be necessary to start the standalone server with the following command line:
ibsrv --database-path="c:\db\standalone-server\demo" --http-base=/standalone/demo --http-port=8080 --http-address=<pc-addrt>
In this example, the <pc-addr> text means specifying one of the network interfaces of the computer, on which the standalone server is running.
It should also be remembered that the standalone server provides the feature to serve several publications of the same infobase. This feature is available only by specifying the appropriate parameters in the standalone server configuration file.
Configuration file example:
server: address: localhost database: dbms: PostgreSQL server: dbServerName name: dbBase user: postgres password: postgres infobase: name: clusterDbName distribute-licenses: yes schedule-jobs: deny http: - base: /lk odata: publish: true reuse-sessions: mode: dontuse - base: /partner web services: service: - name: RemoteManagement alias: RemoteManagment.1cws publish: true reuse-sessions: mode: autouse odata: publish: true reuse-sessions: mode: dontuse
See also:
- Infobase publishing
- Standalone server configuration file
- The http section of the standalone server configuration file