README (698B)
1 # Devroxy 2 3 Simple http(s) proxy for localhost development. 4 5 # Getting started 6 7 I recommend that you set up a DNS server on localhost. 8 9 ``` 10 *.internal. IN A 127.0.0.1 11 ``` 12 13 `/etc/hosts` can be used if you prefer this way. 14 15 ``` 16 api.internal 127.0.0.1 17 app.internal 127.0.0.1 18 ... 19 ``` 20 21 Devroxy does not matter what you use. 22 23 After you setup the dns server, starts devroxy server with command below: 24 25 ``` 26 27 sudo devroxy serve 28 29 # Port 7199 is in use? 30 devroxy serve -p 8080 31 ``` 32 33 and bind the domain to destination port. 34 35 ``` 36 # You can use any http client, even the browser. 37 http://localhost:7199/bind?api.internal=8080 38 ``` 39 40 Done! Now you can access to `http://api.internal`, devroxy will proxy to port 8080.