Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Development Proxy

Installing

The following command will install the scripts on the local user bin folder.

$ ./install.sh
$ source ~/.bashrc

Scripts

SSL Proxy

Create local proxy running with HTTPS on a self-signed certificate and redirect all requests to another URL. Used for testing things that require HTTP such as Webauthn.

usage: ssl-proxy [-h] port target

$ usage: ssl-proxy [-h] 8080 http://localhost:5173

Creates local server serving exclusivelly https on https://localhost:8080 that redirects all requests to http://localhost:5173

Delay Proxy

Create a local proxy that adds a configurable delay before sending the requests to the backend. Used for visualizing loading components on a local project (as local servers tend to load very fast).

usage: delay-proxy [-h] [-d DELAY] [-j] port target

delay-proxy -d 1000 8080 http://localhost:5173

Creates a local server serving on port 8080 that redirects all requests to http://localhost:5173 after a 1 second (1000 ms) delay.

You can add the flag -j to add jitter and make the delay random by up to 30% of the configured delay. This is used to mimic real scenario where some requests load faster than others.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages