Non-default ports workaround
This workaround fixes the problem of incorrect URL redirects in IA Cloud 10.1.2 and 10.1.4 deployed with the custom lb_port_ssl port set in the config.yml file. The default value is 443.
All commands should be performed on the APP server, as WFUSER user.
On the APP server, modify the INSTALL_DIR/nginx/sites/workfusion.conf file.
Find the following block:
location = / { rewrite ^(.*)$ https://$host/workfusion$1 permanent; }Modify this block as in the following example below. For instance, if you set
lb_port_sslto8443.location = / { rewrite ^(.*)$ https://$host:8443/workfusion$1 permanent; }
On the APP server, modify the INSTALL_DIR/nginx/sites/workspace.conf file.
Add the following block assuming that you set
lb_port_sslto8443.location = / { rewrite ^(.*)$ https://$host:8443/workspace$1 permanent; }The above-mentioned block should be inserted before the following block:
location /workspace-resources { root '{{ nginx_path }}/var/www'; include {{ nginx_path }}/mime.types; expires 7d; try_files $uri $uri/ =404; }After the modification, your configuration file should look like this.
location = / { rewrite ^(.*)$ https://$host:8443/workspace$1 permanent; } location /workspace-resources { root '{{ nginx_path }}/var/www'; include {{ nginx_path }}/mime.types; expires 7d; try_files $uri $uri/ =404; }
On the APP server, modify the INSTALL_DIR/nginx/sites/bot-manager.conf file.
Find the following block:
location /bot-manager { include snippets/proxy_params; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_http_version 1.1; proxy_set_header Host ""; # Clean Host header because of bug in spring proxy_set_header Host $proxy_host; # redefine it with proxy_host value proxy_pass http://127.0.0.1:5555/bot-manager/; }Modify this block so that it looks like this (remove some lines and add one line).
location /bot-manager { proxy_pass http://127.0.0.1:5555/bot-manager/; proxy_redirect https://$host/ https://$host:8443/; }
On the APP server, run the following command:
wfmanager restart nginx
This should fix the problem with redirects.