package
1.5.0
Repository: https://github.com/divisionone/micro.git
Documentation: pkg.go.dev

# README

micro proxy

The micro proxy is a cli proxy.

The micro proxy provides a http api which serves as a proxy for the cli where an environment is not directly accessible.

Getting Started

Usage

Install

go get -u github.com/micro/micro

Dependencies

The proxy uses go-micro which means it depends on service discovery.

Install consul

brew install consul
consul agent -dev

Run

The micro proxy runs on port 8081 by default.

Start the proxy

micro proxy

ACME

Serve securely by default using ACME via letsencrypt

MICRO_ENABLE_ACME=true micro proxy

Optionally specify a host whitelist

MICRO_ENABLE_ACME=true MICRO_ACME_HOSTS=example.com,api.example.com micro proxy 

Proxy CLI

To use the proxy with the CLI specify it's address

MICRO_PROXY_ADDRESS=127.0.0.1:8081 micro list services
MICRO_PROXY_ADDRESS=127.0.0.1:8081 micro call greeter Say.Hello '{"name": "john"}'

# Functions

No description provided by the author
Plugins lists the sidecar plugins.
Register registers an sidecar plugin.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author