sudo user.
Create /opt/infoworks/certificates:
xxxxxxxxxxcd /opt/infoworksmkdir -p certificatescd certificatesxxxxxxxxxxcd /opt/infoworks/certificateswget https://iw-saas-setup.s3.us-west-2.amazonaws.com/gen_ssl_cert.shxxxxxxxxxxchmod +x gen_ssl_cert.shxxxxxxxxxxdns=$(hostname -A)./gen_ssl_cert.sh $dnsxxxxxxxxxxvi /opt/infoworks/resources/nginx-portable/conf/infoworks/platform.conf.templatelisten ${PROXY_SERVER_PORT}; to listen ${PROXY_SERVER_PORT} ssl;.xxxxxxxxxxssl_certificate /opt/infoworks/certificates/$dns.crt;ssl_certificate_key /opt/infoworks/certificates/$dns.key;# ssl_dhparam /opt/infoworks/certificates/dhparam.pem;vi /opt/infoworks/resources/nginx-portable/conf/nginx.conf
Line 1:
user infoworks;
Uncomment, and change nobody to infoworks.
vi conf.properties
Commands:
xxxxxxxxxxinternal_ip=$(echo $(hostname -i)|grep -Eo "(\\b[0-9]{1,3}\.){3}[0-9]{1,3}\\b"|head -1)internal_ip_delimited=$(echo "${internal_ip}" | sed -e 's/[]$.*[\^]/\\&/g' )alias=$(echo $(hostname -A))fqdn=$(echo $(hostname -f))cp /opt/infoworks/conf/conf.properties /opt/infoworks/conf/conf.properties.bkpsed -i "s/$internal_ip_delimited/$alias/g" /opt/infoworks/conf/conf.propertiessed -i "s/$fqdn/$alias/g" /opt/infoworks/conf/conf.propertiessed -i "s/proxy_server_scheme\=http/proxy_server_scheme\=https/g" /opt/infoworks/conf/conf.propertiessed -i "s/proxy_server_port\=3000/proxy_server_port\=443/g" /opt/infoworks/conf/conf.properties/opt/infoworks/bin/stop.sh all && /opt/infoworks/bin/start.sh all /opt/infoworks/bin/start.sh ingestionOpen infoworks UI at https://internal_ip.