IP Ranges is a feature for CircleCI customers who need to configure IP-based access to their restricted environments.
This demo shows how to run CircleCI tests(Cypress) to IP-based restricted application using IP Ranges.
- https://circleci-demo-ip-ranges.herokuapp.com (Should return 403: Forbidden)
- Nginx + Static site using React.js
- Nginx config
- Allow lists of IP address ranges and deny others
- List of IP address ranges can be found here
server {
# CircleCI IP Ranges
allow 107.22.40.20;
allow 18.215.226.36;
allow 3.228.208.40;
...
deny all;
cypress_with_ip_ranges:
executor: cypress/browsers-chrome77
circleci_ip_ranges: true # set true to enable IP Ranges feature
steps:
- run:
name: Show IP address
command: curl -s https://checkip.amazonaws.com/
- run: npm run cypress