Coder Social home page Coder Social logo

git-zhoujunyu / gproxy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

GO语言实现的HTTP请求代理跳板服务 - golang implementation of http request proxy jump service

License: Mulan Permissive Software License, Version 2

Go 98.32% Batchfile 1.68%
golang httpproxy

gproxy's Introduction

gproxy

golang implementation of http request proxy jump service

How to use

Modify the configuration file in the config directory

app.yml

# Indicates the http protocol configuration that the service listens on
http:
  enabled: true
  listen-addr: ":80"

## Indicates the https protocol configuration for service listening
# https:
#   enabled: false
#   listen-addr: ":443"
#   cert-file:
#   key-file

# http request proxy mapping configuration
maps:
  test.bd1: https://baidu.com
  tww.bd2: https://www.baidu.com

maps:

Modify the above configuration and start. When the request address: http://localhost:80/test.bd1/s? ie=UTF-8&wd=golang ', the proxy service will request: https://baidu.com/s?ie=UTF-8&wd=golang. The request host and test.bd1 section will be replaced with https://baidu.com

global maps:

app.yml

#... Same as above

# http request proxy mapping configuration
maps:
  /: https://www.baidu.com

When the address: http://localhost:80 is requested, the proxy service will request https://www.baidu.com

gproxy's People

Watchers

junyu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.