Getting Started
#
Diyalog server has following parts:diyalog-server :
Server application of the platform. It is developed by Scala Akka.io technology and it needs Linux/Windows server and Open/Oracle JDK1.8+.
diyalog-database :
Diyalog Platform is using Oracle 12c+/Postgresql9.4+ database servers to record data.
diyalog-keygenerator :
It is simple keygenerator application written with Java. It is used only one time to generate secure server keys that need to run server securely.
diyalog-masterbot :
It is masterbot application which is responsible for the creation of new bots. Only admin users can see masterbot user in your contact list to create new bot credentials. MasterBot can be run when you need to create new bot for security reasons. But it is not necessary to do this.
diyalog-webapp :
This is web application client web server. It serves for downloading web client single page application files by users' browsers.
diyalog-turnserver :
Diyalog Platform has voice and video calls features. Diyalog doing them by using WebRTC library. To enable this you need to install or use TURN/STUN servers onpremise or in cloud in order to resolve clients ip addresses in NAT.
Diyalog clients are :
#
IntegrationDiyalog support phone and email or both authorisation by default. SDK give you a UI for this type of authorisation. Only needing is
#
DevOps DocumentationWelcome to devops documentatation. You can find how you can install Diyalog Platform server from Diyalog docker images.
Installation procedure should be following order.
Starting database server for running application.
You can use Oracle or Postgresql server for Diyalog Platform. If you are using Postgresql database server you can use Posgres official docker images with the following command.
For Postgres Database Server
You can find more information on postgres official docker repository
For Oracle Database Server
There is not any docker official docker image for Oracle database server. You should install your database server and create schema and cridentials.
It is important to note that, database PASSWORD, USER, and DB or SCHEMA information will be used on diyalog-server application jdbc configuration setting.
Generating the trusted server keys
diyalog-keygenerator docker image should be used to generate secure keys for Diyalog server and clients.
Following command will start the diyalog-keygenerator docker container and automatically generate key-files, public trusted keys for clients and secret key for diyalog server. These outputs are important for running diyalog-server application docker image. Therefore output should be saved or noted.
Out put of the docker container will be like following:
Server key files created by this diyalog-keygenerator. 6 key pairs are created and copied to /generatedkeys folder in container. Therefore, a volume can mount to this folder to copy them for using in server.
Trusted public keys will be used on ios and android clients. So, they should be shared with mobile development team to run Diyalog mobile SDK with these keys. This public keys are also stored in the trustedKeys/publickeys file on volume.
Shared Secret is another important data to securing your server. This is a random string and this will be used for creating some hash and other secure data. When a server runs with this secret, this secret should not be changed due to backward compatibility.
Running Diyalog-Server
diyalog-server docker image should be used for running diyalog-server. The following setting can be add to you docker run command as environment variable to change setting in the server.
For Securing Server :
Starting MasterBot app to be able to create and manage credentials of new bot applications.
There is a possibility to create new bot applications for the Diyalog platform. There is a diyalog-bots-platform library. You can use this library to create new bot application which can communicate with diyalog-server. MasterBot is a bot application. Its main purpose is to create and manage newly developed bot applications.
diyalog-masterbot docker image should be used for running diyalog masterbot. You can start MasterBot docker image with following command. Since Masterbot app will connect to Diyalog-server when started, diyalog-server should be started first.
For starting Masterbot app you need to set some environment variables. You can find the details about them below.
MasterBot Settings
for starting docker image: