Skip to content

vorce/lasso

Repository files navigation

CircleCI Dependabot Status

Lasso

Lasso logo

Inspect HTTP requests. Powered by Phoenix and LiveView.

Try it on https://lasso.gigalixirapp.com.

Lasso is very much inspired by webhookinbox.com.

A note on request headers

At the moment Lasso will display all headers it sees in the request, including ones added by things unrelated to the client making the request (such as load balancers, router etc that are infront of the deployed instance). This can be a bit confusing and something that I'd like to improve.

Start locally

  • mix deps.get
  • cd assets && npm install && cd ..
  • iex -S mix phx.server
  • Go to localhost:4000 in your browser

Admin area

There is a minimal admin page where you can see some stats about current lassos on /admin. This page is protected by basic auth, the credentials can be configured in config.exs. By default the password is read from the environment variable ADMIN_PASSWORD.

Building a release

Yay for releases in Elixir 1.9. Phoenix has some additional docs for being deployed in a release.

export SECRET_KEY_BASE=...
APP_NAME=lasso MIX_ENV=prod SECRET_SALT=... mix release
_build/prod/rel/lasso/bin/lasso start