This page was last edited on September 7, 2018, at 12:58.
Comments or questions about this documentation? Contact us for support!
Purpose
To enable your UCS application to run concurrently with your GMS application.
If you install a Load Balancer for UCS and GMS applications, you must set up redirections:
/profiles /metadata/profiles /metadata/identification-keys /server /interactions
/services /metadata/business-attributes /customers
Additionally, you must:
The following configuration examples should help you to manage URLs and redirections.
<tabber> NGINX =
If your application uses NGINX, edit the NGINX configuration file, available in the <NGINX INSTALLATION DIR>/conf directory and add the /genesys/1/cs as the new base URL.
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 3080;
server_name localhost;
# let's gms_user header in request to pass
underscores_in_headers on;
######################################
# If profiles, interactions or /server -> goto UCS
# /profiles
# /metadata/profiles
# /metadata/identification-keys
# /server
# /interactions
######################################
location ~ (interactions|profiles|identification-keys|server) {
proxy_pass http://localhost:7580;
}
######################################
# If base_url (default) -> goto GMS
# /services
# /metadata/business-attributes
# /customers/${customer id}/services
######################################
location /genesys {
proxy_pass http://localhost:8080/genesys;
}
}
}
|-| Apache=
If your application uses Apache, edit the httpd.conf file (or alternate file) and implement the new base URL for Context Service, as follows:
LoadModule headers_module modules/mod_headers.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
# CORS headers
Header set Access-Control-Allow-Origin *
Header set Access-Control-Allow-Credentials true
Header set Access-Control-Allow-Headers "Origin, Content-Type, Authorization, Destination"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS, DELETE"
Header set Access-Control-Request-Headers "Origin, Content-Type"
Header set Access-Control-Max-Age 3600
# proxy to CS
ProxyPass /genesys/1/cs/profiles http://localhost:7580/genesys/1/cs/profiles
ProxyPass /genesys/1/cs/metadata/profiles http://localhost:7580/genesys/1/cs/metadata/profiles
ProxyPass /genesys/1/cs/metadata/identification-keys http://localhost:7580/genesys/1/cs/metadata/identification-keys
ProxyPass /genesys/1/cs/server http://localhost:7580/genesys/1/cs/server
ProxyPass /genesys/1/cs/interactions http://localhost:7580/genesys/1/cs/interactions
# proxy to CS
ProxyPass /genesys http://localhost:8080/genesys
ProxyPassReverse /genesys http://localhost:8080/genesys
|-|
F5=
Edit your configuration file and implement the new base URL for Context Service, with two pools, as follows:
LOAD BALANCER SITE 1: Interface name <LB Site A Interface Name>
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/genesys/1/cs/interactions"
or [HTTP::uri] starts_with "/genesys/1/cs/profiles"
or [HTTP::uri] starts_with "/genesys/1/cs/identification-keys"
or [HTTP::uri] starts_with "/genesys/1/cs/server"}{
pool <UCS pool A side name>
}
else {
pool <GMS pool A side name>
}
}
LOAD BALANCER SITE 2: Interface name <LB Site A Interface Name>
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/genesys/1/cs/interactions"
or [HTTP::uri] starts_with "/genesys/1/cs/profiles"
or [HTTP::uri] starts_with "/genesys/1/cs/identification-keys"
or [HTTP::uri] starts_with "/genesys/1/cs/server"}{
pool <UCS pool B side name>
}
else {
pool <GMS pool B side name>
}
}