How to install on a Linux(CentOS) server
Setting up the application server
Before starting deployment make sure you have followings installed in your up to date Linux CentOS
Docker
Docker Composer
Azure CLI
Or, you can use following bash commands to update the OS and install all the required applications
#!/bin/bash
echo "Update Existing OS"
sudo yum Update -y
echo "Setting Up Repository before install Docker"
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
echo "Installing Docker Engine"
sudo yum install -y docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $(whoami)
sudo systemctl enable docker
sudo systemctl start docker
echo "Install Docker Compose"
sudo yum install -y epel-release
sudo yum install -y python-pip
sudo yum install docker-compose
sudo yum upgrade python*
echo "Install Azure Cli"
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[azure-cli]\nname=Azure CLI\nbaseurl=https://packages.microsoft.com/yumrepos/azure-cli\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/azure-cli.repo'
sudo yum install -y azure-cli
Setting up the Database server
Install Microsoft SQL Server 2019 in your database server, then download & restore following bacpac files
Here is the list of databases you get after the restorations, make sure you have everything
flowdoh-is
flowdoh-ne
flowdoh-workflow
flowdoh-scheduler
flowdoh-settings
flowdoh-tables
flowdoh-workspace
flowdoh-forms
After restoring databases, execute following SQL scripts to add some default data
Installing Flowdoh
First Login to Azure using the terminal.
then login to the Azure Container Registry ,
After a successful login, execute following Bash script to start installation
Configuration Changes
Adding an Email server
Update following environment(env) variables in ZenServices.Proteus.Api.env and ZenServices.UserWorkspace.API.env files
EmailConfigurations_FromAddress= {from email address}
EmailConfigurations_FromPassword= {password}
EmailConfigurations_FromName= {Sender name}
EmailConfigurations_SmtpHost= {smtp host}
EmailConfigurations_SmtpPort= {port}
EmailConfigurations_isFullNameInSalutation= {true/false}
EmailConfigurations_salutation= {salutation}
EmailConfigurations_smtpEnableSSL= {true/false}
Updating Gateway with domain & SSL.
Get the .crt and .key files from client and create a custom gateway docker image for each customer.
Change the Docker-compose gateway ( zenregistry.azurecr.io/zen-gateway ) port from “80” to “443”
Replace “http” to “https” in compose file and env files. (Only in domain urls)
Restart the docker-compose.
Installing Falcon ( In a Windows Server )
Install .NET Core 2.2 and 3.1 hosting bundles respectively in the server.
Click here to Get the latest version of Falcon
Create the following folder structure in inetpub , and copy the Falcon source files.
Run the following commands in PowerShell or in the Command Prompt.
Restore the below databases from the 'Databases.zip' file that you downloaded previously.
Falcon.bacpac
FalconLogs.bacpac
After restoring databases, execute following SQL scripts to add default data.
Updating host url in the web application
Update the below files with the Falcon host url.
appsettings.json file in falconauth, falconlanding and falconumapi
main.xxxx.js file in falconumui and falconmyprofile
Creating a Tenant
Go to the below link and create a tenant.
http://{falconhost}/falconlanding
Adding Connectors
Download the below files.
Log in to Flowdoh, go to Workflow Designer and click on 'Apps' in the header panel.
Enadoc Connector
Register Flowdoh in Enadoc Developer Portal, enter the below urls to 'Redirect URL'.
{Flowdoh Host}/is/api/Authentications/GetAuthCode; {Flwdoh Host}/is/api/Settings/GetAuthCode; {Flwdoh Host}/settingsportalapi/api/binarystorageconnections/AuthCode; {Flwdoh Host}/wfengine/api/oauth2connections/receiveauthcodefromserver; {Eadoc Host}/api/v3/token;
Get the app id and app secret for the registered app.
Follow the below steps to install the connector in Flowdoh.
Open the Enadoc swagger file(enadoc.json) and update servers:url with the client Enadoc host url.
Click “New App” tile in Workflow Designer -> Apps.
Give a title for the app.
Upload the swagger file(enadoc.json).
Select Authentication type as OAuth2.
Enter the app id and app secret received from Enadoc developer portal to 'Oauth2 ClientID' and 'Oauth2 Client Secret'.
Prepare the OAuthURL as follows and enter it to 'Oauth2 Auth Url'.
{Client Host Enadoc Auth}/oauth2/authorize?client_id={app id}&redirect_uri={flowdoh host }/wfengine/api/oauth2connections/receiveauthcodefromserver
Enter {Client Host Enadoc}/api/v3/token for 'Oauth2 Token Url' and 'Oauth2 Refresh Url'.
Click the 'Create' button.
Forms Connector
Click “New App” tile in Workflow Designer -> Apps.
Give a title for the app.
Upload the swagger file(forms.json).
Select Authentication type as OAuth2
Execute the following stored procedure to get the authentication data and fill the fields with them accordingly.
Click the 'Create' button.
Outlook Connector
Go to portal.azure.com and create an Azure AD app.
Click “New App” tile in Workflow Designer -> Apps.
Give a title for the app.
Upload the swagger file(outlook.json).
Select Authentication type as OAuth2
Get the app id and app secret from the Azure AD app created previously and enter them to 'Oauth2 ClientID' and 'Oauth2 Client Secret'.
Prepare the OAuthURL as follows and enter it to 'Oauth2 Auth Url'.
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={app id}&redirect_uri={flowdohhost}/wfengine/api/oauth2connections/receiveauthcodefromserver&response_type= code&scope=Offline_Access https://outlook.office.com/mail.read https://outlook.office.com/mail.send
Enter https://login.microsoftonline.com/common/oauth2/v2.0/token for 'Oauth2 Token Url' and 'Oauth2 Refresh Url'.
Click the 'Create' button.
SMTP Connector
Click “New App” tile in Workflow Designer -> Apps.
Give a title for the app.
Upload the swagger file(smtp.json).
Select 'NoAuth' as the Authentication Type.
Click the 'Create' button.
Tables Connector
Execute the following stored procedure to install the table connector.
Configuring storage connection
Go to Forms Designer -> Settings.
Click on 'Storage Connection'.
Click on 'Enadoc' radio button.
Enter a name for the storage connection, Enadoc host, Enadoc app id and Enadoc app secret in the popped up form.
Click on 'Submit.(The Enadoc login page will prompt)
Login to Enadoc with the Enadoc user account.
After a successful login the library list will be populated in the form.
Select the library, tag profile and index.
Click on 'Save'.
Last updated