Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikegleasonjr/devproxy

A local development http proxy with hosts spoofing written in Go
https://github.com/mikegleasonjr/devproxy

development http-proxy local proxy

Last synced: 3 months ago
JSON representation

A local development http proxy with hosts spoofing written in Go

Awesome Lists containing this project

README

        

# Introduction

[![GoDoc](https://godoc.org/github.com/mikegleasonjr/devproxy?status.svg)](https://godoc.org/github.com/mikegleasonjr/devproxy)

## Installation

```
go get github.com/mikegleasonjr/devproxy/cmd/devproxy
```

## Configuration example

By default, `devproxy` will look for a config file (`.devproxy.yml`) in the current working directory, then in the home folder.

```yaml
---
bind: 0.0.0.0
port: 8080
debug: true

hosts:
- ^api\.website\.dev:80$: localhost:3000
- ^golang\.dev:80$: localhost:6060
```

A request to `http://golang.dev/pkg` will proxy the request to `http://localhost:6060/pkg`.

## License

MIT