This document summarises the whole procedure to setup a test server for benchmarking we used to collect reports. Lookup individual tool's official documentation for more granular information.
Requires python installation.
-
Get flask and waitress from pip.
pip install flask waitress
-
Start the server.
cd test_servers/flask waitress-serve --call 'app:main'
Now, local server should be accessable from http://localhost:8080. See Flask Docs and Waitress Docs for more information.
Requires golang 1.15 and above installation.
-
Install caddy as per your platform accordingly from Caddy Official Installation Docs.
-
Add a domain name to your
/etc/host
file.127.0.0.1 localsite.org localsite
-
Create an SSL Certificate using mkcert inside
test_servers/caddy
folder and install it.cd test_servers/caddy mkcert localsite.org mkcert -install
-
Adapt to config and start the Caddy server.
cd test_servers/caddy caddy adapt sudo caddy run
Now, site should be available at https://localsite.org. See Caddy Docs for more information.