Repository for web content performance verification
-
Measure web content performance using PageSpeed Insights.
- Use ngrok to expose local environment to the internet for measurement
- Dynamically rewrite target FQDN to ngrok-issued FQDN using OpenResty
-
For content compression: httrack or
wget -r -np <target_url>
- Tested on CentOS 7 and Amazon Linux
- Pre-cache content on the cache server
- Sequence diagram of request flow when accessing the target FQDN top page
- Register AWS CLI credentials beforehand. Set instance type, subnet id, ami id, key, etc. in configuration.tf.
cd terraform
terraform apply
cd playbook
ansible-playbook build.yml
docker-compose build openresty_proxy
docker-compose up -d openresty_proxy
- Generate ngrok address beforehand (for exposing proxy server externally. Set cache server address as second argument if using cache server in front)
sh bin/create_fqdn_conf.sh <target_fqdn> <front_address>
- Delete proxy server config (soft delete)
sh bin/delete_fqdn_conf.sh <target_fqdn>
docker-compose build nuster_cache
docker-compose up -d nuster_cache
npm install -g selenium-webdriver



