This is an old revision of the document!
The AGTEK WebApps are written as a web application using the Apache Tomcat application server. The web app hosts a REST api that the browser side portion can use to interact with the AGTEK Access server. Initial deployments of the AccessWeb app are likely to be deployed on a separate AWS EC2 instance, which might be behind a load balancer, or may include several instances to assist shouldering the load.
Configuring the deployment environment is picky enough that a detailed recipe is required to be successful. This page details that configuration. Note that this does NOT discuss the development environment, nor does it does where you will obtain the AccessWeb.war application image.
Because of the intertwined nature of some of these packages, you may need to revisit some configurations a couple of times.
wget https://dl.eff.org/certbot-auto chmod a+x certbo-auto
JAVA_HOME=/home/ec2-user/jdk1.8.0_144 export JAVA_HOME JRE_HOME=$JAVA_HOME export JRE_HOME PATH=$JAVA_HOME/bin:$PATH export PATH TOMCAT_HOME=/home/ec2-user/apache-tomcat-9.0.0.M26 export TOMCAT_HOME
get-certs
script to /home/ec2-user (from the AccessWeb GIT repository /tools directory)chmod a+x get-certs
The script get-certs
is used to register the app server with letsencrypt.
This script create the Tomcat keystore, fetch the certificate and install it into the
Tomcat keystore. Run the script:
./get-certs
Once the Tomcat configuration has done, and this step has been done you should be able to run Tomcat. Note: You need to also install AccessWeb.war.