Final Tests
8. Final tests
- Test HTTPS through Nginx:
In a browser or terminal, go to:https://abeta-proxy.finmars.com/demo/md/3.0/accounts
- Enter Basic Auth user
foo
and passwordbar
. - If your Base64 tokens are correct, you see JSON from Exante.
- Enter Basic Auth user
- Test other routes:
https://abeta-proxy.finmars.com/live/md/3.0/accounts
- Use the same Basic Auth.
- Should return JSON if live token is correct.
- Test local APISIX again (no Nginx):
curl -u foo:bar http://127.0.0.1:9080/demo/md/3.0/accounts
- This hits APISIX directly, without Nginx.
- Should return JSON if config is correct.
9. Automatic certificate renewal
- Certbot already set up automatic renewal.
- To test renewal, run:
sudo certbot renew --dry-run
- If it says “Congratulations, all renewals succeeded,” your auto-renew is working.
10. How to update your APISIX config later
- Edit
/opt/apisix/apisix.yaml
any time:sudo nano /opt/apisix/apisix.yaml
- Save changes and exit.
- Run the restart script:
./restart_apisix.sh
- Check logs:
sudo docker logs apache-apisix
- Test again with
curl
or in a browser.