sudo
user.
Create /opt/infoworks/certificates:
xxxxxxxxxx
cd /opt/infoworks
mkdir -p certificates
cd certificates
xxxxxxxxxx
cd /opt/infoworks/certificates
wget
https://iw-saas-setup.s3.us-west-2.amazonaws.com/gen_ssl_cert.sh
xxxxxxxxxx
chmod +x gen_ssl_cert.sh
xxxxxxxxxx
dns=$(hostname -A)
./gen_ssl_cert.sh $dns
xxxxxxxxxx
vi /opt/infoworks/resources/nginx-portable/conf/infoworks/platform.conf.template
listen ${PROXY_SERVER_PORT};
to listen ${PROXY_SERVER_PORT} ssl;
.xxxxxxxxxx
ssl_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:
xxxxxxxxxx
internal_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.bkp
sed -i "s/$internal_ip_delimited/$alias/g" /opt/infoworks/conf/conf.properties
sed -i "s/$fqdn/$alias/g" /opt/infoworks/conf/conf.properties
sed -i "s/proxy_server_scheme\=http/proxy_server_scheme\=https/g" /opt/infoworks/conf/conf.properties
sed -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 ingestion
Open infoworks UI at https://internal_ip.